events: set reported size on floating map

fixes #3767
This commit is contained in:
Vaxry 2023-11-05 14:12:55 +00:00
parent 3b786419d8
commit 9404972732
2 changed files with 3 additions and 3 deletions

View file

@ -653,8 +653,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
g_pInputManager->simulateMouseMovement(); g_pInputManager->simulateMouseMovement();
// fix some xwayland apps that don't behave nicely // fix some xwayland apps that don't behave nicely
PWINDOW->m_vPendingReportedSize = PWINDOW->m_vRealSize.goalv(); PWINDOW->m_vReportedSize = PWINDOW->m_vPendingReportedSize;
PWINDOW->m_vReportedSize = PWINDOW->m_vPendingReportedSize;
} }
void Events::listener_unmapWindow(void* owner, void* data) { void Events::listener_unmapWindow(void* owner, void* data) {

View file

@ -162,7 +162,8 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv()); g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv());
g_pCompositor->changeWindowZOrder(pWindow, true); g_pCompositor->changeWindowZOrder(pWindow, true);
} } else
pWindow->m_vPendingReportedSize = pWindow->m_vRealSize.goalv();
} }
void IHyprLayout::onBeginDragWindow() { void IHyprLayout::onBeginDragWindow() {