emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master f16bb86: Select device notification events correctly


From: Po Lu
Subject: master f16bb86: Select device notification events correctly
Date: Sat, 20 Nov 2021 20:33:30 -0500 (EST)

branch: master
commit f16bb8693f0122cea447edc243885428a4b8d370
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Select device notification events correctly
    
    * src/xfns.c (setup_xi_event_mask): Select PropertyEvent,
    HierarchyChanged and DeviceChanged for all devices.
---
 src/xfns.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xfns.c b/src/xfns.c
index a142f55..5eff9f5 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]