]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some issues with input on GTK 2 builds
authorPo Lu <luangruo@yahoo.com>
Tue, 15 Mar 2022 04:09:45 +0000 (12:09 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 15 Mar 2022 04:10:31 +0000 (12:10 +0800)
* src/xfns.c (setup_xi_event_mask): Don't ask for XI key press
on GTK 2.

src/xfns.c

index a1d6fd29df9cd678f56898f0ef8f589736f0e018..c8aefec8d711c4d815b495c8217dce765b62398a 100644 (file)
@@ -3642,9 +3642,9 @@ setup_xi_event_mask (struct frame *f)
 #ifndef USE_GTK
   XISetMask (m, XI_FocusIn);
   XISetMask (m, XI_FocusOut);
-#endif
   XISetMask (m, XI_KeyPress);
   XISetMask (m, XI_KeyRelease);
+#endif
   XISelectEvents (FRAME_X_DISPLAY (f),
                  FRAME_X_WINDOW (f),
                  &mask, 1);