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

Vlad Zahorodnii <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/-/commit/43f7621eb1 |ma/kwin/-/commit/51c0880f47
                   |ef22704c4c12c21c29945bffa37 |ecd2e29ceb61e9dd9b30a535d18
                   |e47                         |ff8

--- Comment #6 from Vlad Zahorodnii <[email protected]> ---
Git commit 51c0880f47ecd2e29ceb61e9dd9b30a535d18ff8 by Vlad Zahorodnii.
Committed on 09/07/2025 at 13:28.
Pushed by vladz into branch 'Plasma/6.4'.

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.


(cherry picked from commit 43f7621eb1ef22704c4c12c21c29945bffa37e47)

Co-authored-by: David Edmundson <[email protected]>

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/51c0880f47ecd2e29ceb61e9dd9b30a535d18ff8

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

Reply via email to