mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 21:09:48 +01:00
parent
3b6bcd6ddc
commit
cbaac6deaf
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue