diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-06-02 20:14:34 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-06-02 20:14:34 +0200 |
| commit | 871ab24c6e9d2fb6e48cbf990ddddf0c46a950af (patch) | |
| tree | b3d3a79de00d9687d851a6a8ea13f90867687ccf /src/helpers/Monitor.cpp | |
| parent | ce0f248d20e946ce61ebe5bccaf1c43d2424b762 (diff) | |
internal: properly set monitor props on special windows
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 69d63494..0f8dddd4 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -589,6 +589,13 @@ void CMonitor::setSpecialWorkspace(CWorkspace* const pWorkspace) { specialWorkspaceID = pWorkspace->m_iID; pWorkspace->startAnim(true, true); + for (auto& w : g_pCompositor->m_vWindows) { + if (w->m_iWorkspaceID == pWorkspace->m_iID) { + w->m_iMonitorID = ID; + w->updateSurfaceOutputs(); + } + } + g_pLayoutManager->getCurrentLayout()->recalculateMonitor(ID); if (const auto PLAST = pWorkspace->getLastFocusedWindow(); PLAST) |
