xwm: drop invalid case for clearing X focus

fixes #6955
This commit is contained in:
Vaxry 2024-07-21 20:02:48 +02:00
parent 3b6bcd6ddc
commit cbaac6deaf

View file

@ -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 {