[plasma/kwin] src: Revert "x11: Treat "globally active" model as "no input" model"
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 44d41e2e43ebd480d46e951526f65b71e9f5c88c by Vlad Zahorodnii.
Committed on 19/08/2026 at 10:36.
Pushed by vladz into branch 'master'.
Revert "x11: Treat "globally active" model as "no input" model"
This reverts commit 9dc4dae4d7038ff65e0d7b2cb7d39f12060110fc.
Wine never sets the input hint in WM_HINTS if WM_TAKE_FOCUS is going to
be used.
M +1 -5 src/x11window.cpp
https://invent.kde.org/plasma/kwin/-/commit/44d41e2e43ebd480d46e951526f65b71e9f5c88c
diff --git a/src/x11window.cpp b/src/x11window.cpp
index 9584cf538ec..ba55ac83dc6 100644
--- a/src/x11window.cpp
+++ b/src/x11window.cpp
@@ -1946,11 +1946,7 @@ void X11Window::sendSyncRequest()
bool X11Window::wantsInput() const
{
- // Not checking whether the WM_TAKE_FOCUS is supported because many clients not wishing
- // to accept any input at all only unset the input flag in WM_HINTS and leave WM_TAKE_FOCUS,
- // which then leads to focus management issues that need to be worked around by adding
- // window type checks, etc. Avoiding async focus also helps with keeping the code simple.
- return rules()->checkAcceptFocus(acceptsFocus());
+ return rules()->checkAcceptFocus(acceptsFocus() || info->supportsProtocol(NET::TakeFocusProtocol)) && isClient();
}
bool X11Window::acceptsFocus() const