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/helpers/Monitor.cpp | |
| parent | a6d94eafba195f69378098afdc0e4d64b42f4fab (diff) | |
damage: fix damage on moves / workspace changes
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 47bb9317..47ed79ea 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -522,6 +522,8 @@ void CMonitor::changeWorkspace(CWorkspace* const pWorkspace, bool internal) { g_pEventManager->postEvent(SHyprIPCEvent{"workspace", pWorkspace->m_szName}); EMIT_HOOK_EVENT("workspace", pWorkspace); } + + g_pHyprRenderer->damageMonitor(this); } void CMonitor::changeWorkspace(const int& id, bool internal) { @@ -529,6 +531,8 @@ void CMonitor::changeWorkspace(const int& id, bool internal) { } void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) { + g_pHyprRenderer->damageMonitor(this); + if (!pWorkspace) { // remove special if exists if (const auto EXISTINGSPECIAL = g_pCompositor->getWorkspaceByID(specialWorkspaceID); EXISTINGSPECIAL) |
