summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2022-08-16 16:30:10 +0200
committervaxerski <vaxry@vaxry.net>2022-08-16 16:30:10 +0200
commitdaeb0d341882f221029d1f608516a7fca7decfa7 (patch)
tree91ee5f98e969a790b393be7686d408839f3f98c6 /src/Compositor.cpp
parent7cde50a018eb6a1f6e06f81768e73ecd5f982c2e (diff)
force sending size on setWindowFullscreen
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 7c6566b7..5d6d65ec 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -1391,11 +1391,14 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode
g_pLayoutManager->getCurrentLayout()->fullscreenRequestForWindow(pWindow, mode, on);
g_pXWaylandManager->setWindowFullscreen(pWindow, pWindow->m_bIsFullscreen && mode == FULLSCREEN_FULL);
+
// make all windows on the same workspace under the fullscreen window
for (auto& w : g_pCompositor->m_vWindows) {
if (w->m_iWorkspaceID == pWindow->m_iWorkspaceID)
w->m_bCreatedOverFullscreen = false;
}
+
+ g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv(), true);
}
void CCompositor::moveUnmanagedX11ToWindows(CWindow* pWindow) {