Files
Jeff Quast aaab61a87b ignore NotifyPointer as focus events
Problem: On X11/KDE, with two kitty windows on different virtual
desktops, switching desktops with the keyboard while the mouse pointer
sits still caused both windows to report as "focused". Keyboard input
still went to visible window, but paste and other actions went to the
other window. Fixed by ignoring FocusIn/FocusOut when ``detail ==
NotifyPointer``.

Logfile before::

    0x2 focused: 0   0x2 focused: 1   0x1 focused: 1

Logfile after::

    0x2 focused: 0   0x1 focused: 1

Video attached.  This same approach is used by Qt and Wine,

https://github.com/qt/qtbase/blob/148bc4bc0508d0f7ac95922b80ced24c4aa6de80/src/plugins/platforms/xcb/qxcbwindow.cpp#L2292-L2312
https://github.com/wine-mirror/wine/blob/9d17984f27bfe25cbef162749ed3592b839b246e/dlls/winex11.drv/event.c#L697
2026-09-25 05:17:28 -04:00
..
2026-09-04 21:04:24 +05:30
2026-09-19 15:23:24 +05:30
2026-09-19 15:21:29 +05:30
2021-09-26 11:17:54 +05:30
2026-09-19 15:21:29 +05:30
2026-08-11 16:49:43 +05:30
2026-09-19 15:21:29 +05:30
2019-12-08 22:37:47 +05:30
2026-09-07 20:51:54 +05:30