diff options
| author | Sungyoon Cho <sungyoon@sungyooncho.dev> | 2024-04-20 02:46:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 18:46:16 +0100 |
| commit | dd39cd7e420750ac832e1c3e51fac87c16ae8ea3 (patch) | |
| tree | c7b8afe048df28dd04673d46ad673d5c812e87d4 /src/managers/KeybindManager.cpp | |
| parent | 4d0a63523751a590a521fd873f770825023069ae (diff) | |
windows: recalculate monitor after updating windows (#5647)
Recalculate monitor after updating windows, so layout render doesn't get
overridden.
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index e6d54ae1..1758f333 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -211,6 +211,7 @@ bool CKeybindManager::ensureMouseBindState() { g_pCompositor->updateWorkspaceWindows(lastDraggedWindow->workspaceID()); g_pCompositor->updateWorkspaceSpecialRenderData(lastDraggedWindow->workspaceID()); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(lastDraggedWindow->m_iMonitorID); g_pCompositor->updateAllWindowsAnimatedDecorationValues(); return true; @@ -872,6 +873,7 @@ static void toggleActiveFloatingCore(std::string args, std::optional<bool> float } g_pCompositor->updateWorkspaceWindows(PWINDOW->workspaceID()); g_pCompositor->updateWorkspaceSpecialRenderData(PWINDOW->workspaceID()); + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(PWINDOW->m_iMonitorID); g_pCompositor->updateAllWindowsAnimatedDecorationValues(); } |
