Summary: | KWin tabbox: pass down keys autorepeat flag | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | ratijas <me> |
Component: | effects-tabbox | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/017eed549dc0f11bcd225194912fd5f10a9c4bfd | Version Fixed In: | 6.3.0 |
Sentry Crash Report: | |||
Attachments: | KWin tabbox - autorepeat |
Description
ratijas
2022-05-27 09:14:13 UTC
Seems reasonable to me. A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6853 Git commit 017eed549dc0f11bcd225194912fd5f10a9c4bfd by Ismael Asensio. Committed on 03/12/2024 at 22:25. Pushed by iasensio into branch 'master'. tabbox: Do not wrap around the window list when the shortcut is held When the tabbox shortcut (ex. Alt-Tab) is held pressed, due to the autorepeat keys mechanism, we'll receive a lot of rapid key events and quickly iterate through the window list, potentially wrapping around in an infinite loop. Instead, let's detect if the key event is in autorepeat and stop the rapid iteration at the bounds of the window list. Wrapping around is still possible by releasing and pressing the non-modifier key (generally `Tab`) again. Wayland-only for now due to the difficulty of detecting a held key from a xcb_key_press_event. FIXED-IN: 6.3.0 M +9 -0 src/tabbox/tabbox.cpp https://invent.kde.org/plasma/kwin/-/commit/017eed549dc0f11bcd225194912fd5f10a9c4bfd |