[hackers] [dmenu][PATCH] Capture KeyRelease without processing

From: Ivan Tham <pickfire_AT_riseup.net>
Date: Sat, 16 Feb 2019 16:37:29 +0800

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
_AT_@ -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
Received on Sat Feb 16 2019 - 09:37:29 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 16 2019 - 09:48:23 CET