From ae46fbafe5ba2d707e3d2897de74bf5a1d7397c6 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 11 Nov 2023 17:13:20 +0000 Subject: [PATCH] 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 --- src/managers/XWaylandManager.cpp | 7 +++++-- 1 file 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) {