aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorSungyoon Cho <[email protected]>2024-08-24 04:42:14 +0900
committerGitHub <[email protected]>2024-08-23 20:42:14 +0100
commit688fe5c14781c63a1db23d4d02bf239283068ff6 (patch)
treeea9209b1de111a21f5a390e360e39bbdad899f16 /src/Compositor.cpp
parenta3b75559b35880a85149ab0b644cc0c26cdfdae1 (diff)
downloadHyprland-688fe5c14781c63a1db23d4d02bf239283068ff6.tar.gz
Hyprland-688fe5c14781c63a1db23d4d02bf239283068ff6.zip
windowrules: add fullscreenstate field (#7466)
* windowrules: add fullscreenstate field * fix typo
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 75c22743..c9a698ce 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -2326,8 +2326,12 @@ void CCompositor::setWindowFullscreenState(const PHLWINDOW PWINDOW, sFullscreenS
PWINDOW->m_sFullscreenState.client = state.client;
g_pXWaylandManager->setWindowFullscreen(PWINDOW, state.client & FSMODE_FULLSCREEN);
- if (!CHANGEINTERNAL)
+ if (!CHANGEINTERNAL) {
+ PWINDOW->updateDynamicRules();
+ updateWindowAnimatedDecorationValues(PWINDOW);
+ g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PWINDOW->m_iMonitorID);
return;
+ }
g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(PWINDOW, CURRENT_EFFECTIVE_MODE, EFFECTIVE_MODE);
@@ -2339,7 +2343,6 @@ void CCompositor::setWindowFullscreenState(const PHLWINDOW PWINDOW, sFullscreenS
EMIT_HOOK_EVENT("fullscreen", PWINDOW);
PWINDOW->updateDynamicRules();
- PWINDOW->updateWindowDecos();
updateWindowAnimatedDecorationValues(PWINDOW);
g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PWINDOW->m_iMonitorID);