aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-12-12 01:14:36 +0000
committerVaxry <[email protected]>2023-12-12 01:14:36 +0000
commitaccb3d8d0b339ce83dd36704503253d874c7163b (patch)
tree77be38114c756e6b27936ad5cee0ec0e85c843a5 /src/managers/XWaylandManager.cpp
parentea7569d7e0941d19f5f469a5fbb79bc0fa62b935 (diff)
downloadHyprland-accb3d8d0b339ce83dd36704503253d874c7163b.tar.gz
Hyprland-accb3d8d0b339ce83dd36704503253d874c7163b.zip
xwayland: push invisible windows outside layout
fixes some xwl focus issues with special especially.
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r--src/managers/XWaylandManager.cpp4
1 files changed, 3 insertions, 1 deletions
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) {