Skip to content

Missing modifier release events on window focus change #7196

@neurocyte

Description

@neurocyte

Describe the bug
Switching to another kitty window or tab does not generate release events for held modifier keys. Switching focus to another OS window does generate release events. This bug is about kitty's own windows and tabs.

To Reproduce
Steps to reproduce the behavior:

  1. Hold down control, alt or shift
  2. Select another kitty window or tab, either by clicking or with focus_follows_mouse
  3. No release event is shown in the previous window

Environment details

kitty 0.32.2 (c1af14c22a) created by Kovid Goyal
Linux dent 6.7.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 03 Mar 2024 00:30:36 +0000 x86_64
Arch Linux 6.7.8-arch1-1 (/dev/tty)

This is on today's master.

Additional context
Reproducible with kitty --config NONE

I have focus_follows_mouse enabled in both kitty and X11 (I3).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions