https://bugs.kde.org/show_bug.cgi?id=497075

David Edmundson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/kwin/-/commit/43f7621eb1
                   |                            |ef22704c4c12c21c29945bffa37
                   |                            |e47

--- Comment #5 from David Edmundson <[email protected]> ---
Git commit 43f7621eb1ef22704c4c12c21c29945bffa37e47 by David Edmundson.
Committed on 09/07/2025 at 09:17.
Pushed by davidedmundson into branch 'master'.

wayland: close popups upon window activation

Popups should grab all input on Wayland, however there are numerous
(deliberate) ways to get outside the grab, such as a shortcut that opens
a new window or pressing alt-tab.

If a popup is active when the focus changes we are left in a state where
the new window visibly has focus and appears on top of the popup's main
window, but the popup is still visible with an input grab. This is a
broken state.

This patch cancels popups if the focus window changes for whatever
reason.

Cancelling a popup also destroys the window server side rather than
waiting for the client to handle the popupDone so there is no racey
aspect for the next input.

M  +45   -0    autotests/integration/xdgshellwindow_test.cpp
M  +7    -0    src/popup_input_filter.cpp
M  +1    -1    src/popup_input_filter.h

https://invent.kde.org/plasma/kwin/-/commit/43f7621eb1ef22704c4c12c21c29945bffa37e47

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to