diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-07-21 20:02:48 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-07-21 20:02:48 +0200 |
| commit | cbaac6deafb857662d630efbca8b0ebac0f11b44 (patch) | |
| tree | d48b3acabbcb92d64892b1fdc4fc420a4abadf52 /src | |
| parent | 3b6bcd6ddcfebd1fed0694aa2c0bd9753f4d5d46 (diff) | |
xwm: drop invalid case for clearing X focus
fixes #6955
Diffstat (limited to 'src')
| -rw-r--r-- | src/xwayland/XWM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index 0eaa16be..81c59cc2 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -879,7 +879,7 @@ void CXWM::activateSurface(SP<CXWaylandSurface> surf, bool activate) { if ((surf == focusedSurface && activate) || (surf && surf->overrideRedirect)) return; - if (!surf || (!activate || !surf->overrideRedirect /* if we are focusing on an OR child, don't unfocus parent */)) { + if (!surf) { setActiveWindow((uint32_t)XCB_WINDOW_NONE); focusWindow(nullptr); } else { |
