aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-05 14:12:55 +0000
committerVaxry <[email protected]>2023-11-05 14:12:55 +0000
commit94049727327de8bf087184b0e2b386a5bc2563ba (patch)
tree7e845441cbc9342b9609de9f039973763a7cd9c2
parent3b786419d817a76b834d5e010afbed4d0cf98804 (diff)
downloadHyprland-94049727327de8bf087184b0e2b386a5bc2563ba.tar.gz
Hyprland-94049727327de8bf087184b0e2b386a5bc2563ba.zip
events: set reported size on floating map
fixes #3767
-rw-r--r--src/events/Windows.cpp3
-rw-r--r--src/layout/IHyprLayout.cpp3
2 files changed, 3 insertions, 3 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 23559773..f131efa4 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -653,8 +653,7 @@ void Events::listener_mapWindow(void* owner, void* data) {
g_pInputManager->simulateMouseMovement();
// 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) {
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp
index f9f8ab59..22816716 100644
--- a/src/layout/IHyprLayout.cpp
+++ b/src/layout/IHyprLayout.cpp
@@ -162,7 +162,8 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) {
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv());
g_pCompositor->changeWindowZOrder(pWindow, true);
- }
+ } else
+ pWindow->m_vPendingReportedSize = pWindow->m_vRealSize.goalv();
}
void IHyprLayout::onBeginDragWindow() {