diff options
author | Sungyoon Cho <[email protected]> | 2024-08-01 18:43:02 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2024-08-01 11:43:02 +0200 |
commit | 8c02b3c267198541dd03601e4c7ff7d870197728 (patch) | |
tree | cc0de3036cf92b870b1b15949cd434187c2ef1c1 | |
parent | 5b7057c4790e0dafea53c2343a792c17e2dbf4a7 (diff) | |
download | Hyprland-8c02b3c267198541dd03601e4c7ff7d870197728.tar.gz Hyprland-8c02b3c267198541dd03601e4c7ff7d870197728.zip |
layout: fix dynamic rules not updating after setting fullscreen (#7129)
-rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 7221d3a7..2a1e4f8c 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2316,9 +2316,10 @@ void CCompositor::setWindowFullscreenState(const PHLWINDOW PWINDOW, sFullscreenS g_pEventManager->postEvent(SHyprIPCEvent{"fullscreen", std::to_string((int)EFFECTIVE_MODE != FSMODE_NONE)}); EMIT_HOOK_EVENT("fullscreen", PWINDOW); - g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PWINDOW->m_iMonitorID); + PWINDOW->updateDynamicRules(); PWINDOW->updateWindowDecos(); updateWindowAnimatedDecorationValues(PWINDOW); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PWINDOW->m_iMonitorID); // make all windows on the same workspace under the fullscreen window for (auto& w : m_vWindows) { |