internal: update window position/size after changing fullscreenstate (#8865)

This effects fullscreen group of floating windows.
This commit is contained in:
khushal-solves 2024-12-27 20:50:38 +05:30 committed by GitHub
parent 43ca66779b
commit 85632e7c33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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