From 7f35f33b4ca16509e127976772db6abd9abf100b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Fri, 20 Oct 2023 20:15:41 +0100 Subject: surface/wayland: conform to small surface requirements do not stretch small surfaces, instead center them if they fit. --- src/managers/XWaylandManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/managers/XWaylandManager.cpp') diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 39331e9c..a40647fa 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -163,8 +163,8 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f if (!force && ((pWindow->m_vReportedSize == size && windowPos == pWindow->m_vReportedPosition) || (pWindow->m_vReportedSize == size && !pWindow->m_bIsX11))) return; - pWindow->m_vReportedPosition = windowPos; - pWindow->m_vReportedSize = size; + pWindow->m_vReportedPosition = windowPos; + pWindow->m_vPendingReportedSize = size; pWindow->m_fX11SurfaceScaledBy = 1.f; -- cgit v1.2.3