From accb3d8d0b339ce83dd36704503253d874c7163b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 12 Dec 2023 01:14:36 +0000 Subject: xwayland: push invisible windows outside layout fixes some xwl focus issues with special especially. --- src/managers/XWaylandManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/managers/XWaylandManager.cpp') diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 2883f205..dcb706e3 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -262,7 +262,9 @@ void CHyprXWaylandManager::moveXWaylandWindow(CWindow* pWindow, const Vector2D& if (!pWindow->m_bIsX11) return; - wlr_xwayland_surface_configure(pWindow->m_uSurface.xwayland, pos.x, pos.y, pWindow->m_vRealSize.vec().x, pWindow->m_vRealSize.vec().y); + Vector2D size = pWindow->m_vRealSize.goalv() * pWindow->m_fX11SurfaceScaledBy; + + wlr_xwayland_surface_configure(pWindow->m_uSurface.xwayland, pos.x, pos.y, size.x, size.y); } void CHyprXWaylandManager::checkBorders(CWindow* pWindow) { -- cgit v1.2.3