From: Po Lu Date: Tue, 15 Mar 2022 04:09:45 +0000 (+0800) Subject: Fix some issues with input on GTK 2 builds X-Git-Tag: emacs-29.0.90~1931^2~1120 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2bfa184e29b51e5c354935be19d8ea3432611190;p=emacs.git Fix some issues with input on GTK 2 builds * src/xfns.c (setup_xi_event_mask): Don't ask for XI key press on GTK 2. --- diff --git a/src/xfns.c b/src/xfns.c index a1d6fd29df9..c8aefec8d71 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -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);