Skip to content

Commit

Permalink
layout: fix dynamic rules not updating after setting fullscreen (#7129)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungyoonc authored Aug 1, 2024
1 parent 5b7057c commit 8c02b3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8c02b3c

Please sign in to comment.