kitty/glfw
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,

148bc4bc05/src/plugins/platforms/xcb/qxcbwindow.cpp (L2292-L2312)
9d17984f27/dlls/winex11.drv/event.c (L697)
2026-09-25 05:17:28 -04:00
..
backend_utils.c Fix #10436 2026-09-04 21:04:24 +05:30
backend_utils.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_displaylink.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_init.m autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
cocoa_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_joystick.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_monitor.m autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
cocoa_platform.h macOS: Fix pasting paths from dropped file promises 2026-09-02 09:35:55 +05:30
cocoa_window.m autoformat 2026-09-19 15:23:24 +05:30
context.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
dbus_glfw.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
dbus_glfw.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
egl_context.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
egl_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
glfw.py macOS: Fix pasting paths from dropped file promises 2026-09-02 09:35:55 +05:30
glfw3.h Fix #10492 2026-09-19 15:21:29 +05:30
glx_context.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
glx_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
ibus_glfw.c Treat empty display server envvars as unset 2026-08-30 15:54:55 -04:00
ibus_glfw.h
init.c Fix #10492 2026-09-19 15:21:29 +05:30
input.c autoformat 2026-08-11 16:49:43 +05:30
internal.h Fix #10492 2026-09-19 15:21:29 +05:30
kwin-blur-v1.xml
linux_desktop_settings.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
linux_desktop_settings.h Function to get the current system color theme 2024-11-07 12:47:06 +05:30
linux_joystick.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
linux_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
linux_notify.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
linux_notify.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
main_loop.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
mappings.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
memfd.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
momentum-scroll.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
monotonic.c
nsgl_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
nsgl_context.m autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
null_init.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_joystick.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_joystick.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_platform.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
null_window.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
osmesa_context.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
osmesa_context.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
posix_thread.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
posix_thread.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
source-info.json Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
virtual-keyboard-unstable-v1.xml Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
vulkan.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
window.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_client_side_decorations.c autoformat c/objc code, using clang-format with left alignment for line continuation chars 2026-08-05 19:37:00 +05:30
wl_client_side_decorations.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_cursors.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_cursors.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_init.c Fix #10448 2026-09-07 20:51:54 +05:30
wl_inject.c Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
wl_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_platform.h Wayland: Workaround clipboard managers that restore application private MIME types. Fixes #10376 2026-08-21 08:14:38 +05:30
wl_text_input.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_text_input.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
wl_window.c Wayland: Workaround clipboard managers that restore application private MIME types. Fixes #10376 2026-08-21 08:14:38 +05:30
wlr-layer-shell-unstable-v1.xml
wlr-virtual-pointer-unstable-v1.xml Add API to glfw to inject key and mouse events into wlr supporting Wayland compositors 2026-08-10 15:13:54 +05:30
x11_init.c Treat empty display server envvars as unset 2026-08-30 15:54:55 -04:00
x11_monitor.c autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
x11_platform.h X11: fix scroll wheel being ignored when spurious crossing events occur 2026-08-14 19:04:54 +08:00
x11_window.c ignore NotifyPointer as focus events 2026-09-25 05:17:28 -04:00
xkb-compat-shim.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30
xkb_glfw.c Re-apply remap_modifiers to a reloaded xkb keymap state 2026-08-13 10:20:20 +01:00
xkb_glfw.h autoformat c/objc code, using clang-format 2026-08-05 19:10:55 +05:30