From 85632e7c334f6621b7aa08f295483f3358e42c57 Mon Sep 17 00:00:00 2001 From: khushal-solves Date: Fri, 27 Dec 2024 20:50:38 +0530 Subject: [PATCH] internal: update window position/size after changing fullscreenstate (#8865) This effects fullscreen group of floating windows. --- src/desktop/Window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 871e73ed..4104c737 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1026,14 +1026,14 @@ void CWindow::setGroupCurrent(PHLWINDOW pWindow) { const auto WORKSPACE = PCURRENT->m_pWorkspace; const auto MODE = PCURRENT->m_sFullscreenState.internal; - const auto PWINDOWSIZE = PCURRENT->m_vRealSize.goal(); - const auto PWINDOWPOS = PCURRENT->m_vRealPosition.goal(); - const auto CURRENTISFOCUS = PCURRENT == g_pCompositor->m_pLastWindow.lock(); if (FULLSCREEN) g_pCompositor->setWindowFullscreenInternal(PCURRENT, FSMODE_NONE); + const auto PWINDOWSIZE = PCURRENT->m_vRealSize.goal(); + const auto PWINDOWPOS = PCURRENT->m_vRealPosition.goal(); + PCURRENT->setHidden(true); pWindow->setHidden(false); // can remove m_pLastWindow