Most IME uses keyboard shortcuts to switch to next keyboard input such
as LCTRL + LSHIFT, so need to unmask this event for processing by XIM.
---
 dmenu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dmenu.c b/dmenu.c
index 3bfd74d..c21ca7a 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -658,7 +658,7 @@ setup(void)
        /* create menu window */
        swa.override_redirect = True;
        swa.background_pixel = scheme[SchemeNorm][ColBg].pixel;
-       swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
+       swa.event_mask = ExposureMask | KeyPressMask | KeyReleaseMask | 
VisibilityChangeMask;
        win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
                            CopyFromParent, CopyFromParent, CopyFromParent,
                            CWOverrideRedirect | CWBackPixel | CWEventMask, 
&swa);
-- 
2.20.1


Reply via email to