diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-15 16:16:33 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-04-15 16:16:33 +0100 |
| commit | d6c4ae71d082eecefac40216b0a1b236daa3c0ab (patch) | |
| tree | c5edbeea46c3812ea97147114a1f6dbb4fb5c2f3 /src/managers/KeybindManager.cpp | |
| parent | a6d94eafba195f69378098afdc0e4d64b42f4fab (diff) | |
damage: fix damage on moves / workspace changes
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 889050bc..c377080f 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -876,6 +876,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) { auto pWorkspace = g_pCompositor->getWorkspaceByID(WORKSPACEID); + g_pHyprRenderer->damageWindow(PWINDOW); + if (pWorkspace) { g_pCompositor->moveWindowToWorkspaceSafe(PWINDOW, pWorkspace); const auto PMONITOR = g_pCompositor->getMonitorFromID(pWorkspace->m_iMonitorID); @@ -919,6 +921,8 @@ void CKeybindManager::moveActiveToWorkspaceSilent(std::string args) { if (WORKSPACEID == PWINDOW->m_iWorkspaceID) return; + g_pHyprRenderer->damageWindow(PWINDOW); + auto pWorkspace = g_pCompositor->getWorkspaceByID(WORKSPACEID); const auto OLDMIDDLE = PWINDOW->middle(); |
