diff options
| author | Po Lu | 2022-03-15 12:09:45 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-15 12:10:31 +0800 |
| commit | 2bfa184e29b51e5c354935be19d8ea3432611190 (patch) | |
| tree | ab74a5a14217e07863aef41bc9389758e8a7e72b /src | |
| parent | 8cc8dfd67e44752667781602394962647afc795b (diff) | |
| download | emacs-2bfa184e29b51e5c354935be19d8ea3432611190.tar.gz emacs-2bfa184e29b51e5c354935be19d8ea3432611190.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 3642 | #ifndef USE_GTK | 3642 | #ifndef USE_GTK |
| 3643 | XISetMask (m, XI_FocusIn); | 3643 | XISetMask (m, XI_FocusIn); |
| 3644 | XISetMask (m, XI_FocusOut); | 3644 | XISetMask (m, XI_FocusOut); |
| 3645 | #endif | ||
| 3646 | XISetMask (m, XI_KeyPress); | 3645 | XISetMask (m, XI_KeyPress); |
| 3647 | XISetMask (m, XI_KeyRelease); | 3646 | XISetMask (m, XI_KeyRelease); |
| 3647 | #endif | ||
| 3648 | XISelectEvents (FRAME_X_DISPLAY (f), | 3648 | XISelectEvents (FRAME_X_DISPLAY (f), |
| 3649 | FRAME_X_WINDOW (f), | 3649 | FRAME_X_WINDOW (f), |
| 3650 | &mask, 1); | 3650 | &mask, 1); |