mirror of
https://github.com/Trensa-Organization/Hyprland.git
synced 2025-03-16 03:03:40 +01:00
events: make new windows taking over fullscreen keep the existing mode (#3588)
This commit is contained in:
parent
93676f91a0
commit
421f5fb221
1 changed files with 2 additions and 0 deletions
|
@ -473,6 +473,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
|
||||||
PWINDOW->m_bNoInitialFocus = true;
|
PWINDOW->m_bNoInitialFocus = true;
|
||||||
else if (*PNEWTAKESOVERFS == 2)
|
else if (*PNEWTAKESOVERFS == 2)
|
||||||
g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_INVALID);
|
g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_INVALID);
|
||||||
|
else if (PWORKSPACE->m_efFullscreenMode == FULLSCREEN_MAXIMIZED)
|
||||||
|
requestsMaximize = true;
|
||||||
else
|
else
|
||||||
requestsFullscreen = true;
|
requestsFullscreen = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue