aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-10-04 15:00:24 +0100
committervaxerski <[email protected]>2023-10-04 15:00:24 +0100
commit322c5cc4b97855165bd14dd1b072ec5cdf53d57b (patch)
treeb143943568fe9c3f655f69f6dfaad7610bc82d62
parent230356012be03412db78a9e85c711ec878fd0a69 (diff)
downloadHyprland-322c5cc4b97855165bd14dd1b072ec5cdf53d57b.tar.gz
Hyprland-322c5cc4b97855165bd14dd1b072ec5cdf53d57b.zip
layout: add new_window_takes_over_fullscreen mode 2
fixes #3486
-rw-r--r--src/events/Windows.cpp2
m---------subprojects/wlroots0
2 files changed, 2 insertions, 0 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index b870f01d..54ffb37e 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -471,6 +471,8 @@ void Events::listener_mapWindow(void* owner, void* data) {
if (PWORKSPACE->m_bHasFullscreenWindow && !requestsFullscreen) {
if (*PNEWTAKESOVERFS == 0)
PWINDOW->m_bNoInitialFocus = true;
+ else if (*PNEWTAKESOVERFS == 2)
+ g_pCompositor->setWindowFullscreen(g_pCompositor->getFullscreenWindowOnWorkspace(PWORKSPACE->m_iID), false, FULLSCREEN_INVALID);
else
requestsFullscreen = true;
}
diff --git a/subprojects/wlroots b/subprojects/wlroots
-Subproject 5ef42e8e8adece098848fac53c721b6eb3818fc
+Subproject c2aa7fd965cb7ee8bed24f4122b720aca8f0fc1