aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-11 17:13:20 +0000
committerVaxry <[email protected]>2023-11-11 17:13:20 +0000
commitae46fbafe5ba2d707e3d2897de74bf5a1d7397c6 (patch)
tree3087cff617fa42f510be5c91de70e84ede6b72e3 /src/managers/XWaylandManager.cpp
parent52cf122a0a5e912b662fbb63e50c9e87bd0dc33c (diff)
downloadHyprland-ae46fbafe5ba2d707e3d2897de74bf5a1d7397c6.tar.gz
Hyprland-ae46fbafe5ba2d707e3d2897de74bf5a1d7397c6.zip
xdg: set state maximized for all tiled windows
forces them to not draw stupid decorations of their own. Wlroots stopped doing it for us. Fixes #3830
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r--src/managers/XWaylandManager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index 04fcf967..f13b2cd2 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -184,8 +184,11 @@ void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool f
}
void CHyprXWaylandManager::setWindowStyleTiled(CWindow* pWindow, uint32_t edgez) {
- if (!pWindow->m_bIsX11)
- wlr_xdg_toplevel_set_tiled(pWindow->m_uSurface.xdg->toplevel, edgez);
+ if (pWindow->m_bIsX11)
+ return;
+
+ wlr_xdg_toplevel_set_tiled(pWindow->m_uSurface.xdg->toplevel, edgez);
+ wlr_xdg_toplevel_set_maximized(pWindow->m_uSurface.xdg->toplevel, true);
}
wlr_surface* CHyprXWaylandManager::surfaceAt(CWindow* pWindow, const Vector2D& client, Vector2D& surface) {