mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 16:25:59 +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))
|
if ((surf == focusedSurface && activate) || (surf && surf->overrideRedirect))
|
||||||
return;
|
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);
|
setActiveWindow((uint32_t)XCB_WINDOW_NONE);
|
||||||
focusWindow(nullptr);
|
focusWindow(nullptr);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue