X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/8e577322a3a55abf2f8226218ec87a7eec7fc3b1..297c886b72f4e9093973aaa14b66d392f6196634:/st.c diff --git a/st.c b/st.c index 9df6707..12e1e1f 100644 --- a/st.c +++ b/st.c @@ -256,9 +256,9 @@ typedef struct { } XWindow; typedef struct { - int b; + uint b; uint mask; - char s[ESC_BUF_SIZ]; + char *s; } Mousekey; typedef struct { @@ -3579,7 +3579,6 @@ kpress(XEvent *ev) { return; len = XmbLookupString(xw.xic, e, buf, sizeof buf, &ksym, &status); - e->state &= ~Mod2Mask; /* 1. shortcuts */ for(bp = shortcuts; bp < shortcuts + LEN(shortcuts); bp++) { if(ksym == bp->keysym && match(bp->mod, e->state)) {