diff options
author | Po Lu <luangruo@yahoo.com> | 2021-11-21 09:32:46 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2021-11-21 09:32:46 +0800 |
commit | f16bb8693f0122cea447edc243885428a4b8d370 (patch) | |
tree | 409acad0526f78b7e70c9e881955725cacdeffd5 | |
parent | b60c2a5d853b0c6478d7182920c39cb2ec96bdc7 (diff) | |
download | emacs-f16bb8693f0122cea447edc243885428a4b8d370.tar.gz emacs-f16bb8693f0122cea447edc243885428a4b8d370.tar.bz2 emacs-f16bb8693f0122cea447edc243885428a4b8d370.zip |
Select device notification events correctly
* src/xfns.c (setup_xi_event_mask): Select PropertyEvent,
HierarchyChanged and DeviceChanged for all devices.
-rw-r--r-- | src/xfns.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index a142f5518cc..5eff9f5b0f8 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2938,6 +2938,13 @@ setup_xi_event_mask (struct frame *f) XISetMask (m, XI_Leave); XISetMask (m, XI_FocusIn); XISetMask (m, XI_FocusOut); + XISelectEvents (FRAME_X_DISPLAY (f), + FRAME_X_WINDOW (f), + &mask, 1); + + memset (m, 0, l); + mask.deviceid = XIAllDevices; + XISetMask (m, XI_PropertyEvent); XISetMask (m, XI_HierarchyChanged); XISetMask (m, XI_DeviceChanged); |