mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 14:34:52 +02:00
When focus_follows_mouse is enabled, returning to a desktop/space fired an enter event that switched the active window to whichever one was under the cursor, even though the mouse had not crossed a window boundary. Distinguish genuine mouse motion into a window from a window reappearing under a stationary cursor by checking, in cursor_enter_callback, whether the cursor position actually changed. focus_follows_mouse now switches focus only when the cursor moved, so motion into a window still switches focus while a stationary reappearance does not.
217 KiB
217 KiB