From: Po Lu Date: Sun, 21 Nov 2021 01:32:46 +0000 (+0800) Subject: Select device notification events correctly X-Git-Tag: emacs-29.0.90~2852^2~151 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f16bb8693f0122cea447edc243885428a4b8d370;p=emacs.git Select device notification events correctly * src/xfns.c (setup_xi_event_mask): Select PropertyEvent, HierarchyChanged and DeviceChanged for all devices. --- 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);