commit 002c7d22043da56a54511b5d234c2e3bd997d119
parent 8206cc8889994b3e9ce3c50abefc19367cf49a8e
Author: Leonardo Hernández Hernández <leohdz172@proton.me>
Date: Sun, 25 Aug 2024 13:02:34 -0600
tell xwayland clients they're maximized
like we do to xdg clients when tiled state is not supported.
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/client.h b/client.h
@@ -358,8 +358,11 @@ static inline void
client_set_tiled(Client *c, uint32_t edges)
{
#ifdef XWAYLAND
- if (client_is_x11(c))
+ if (client_is_x11(c)) {
+ wlr_xwayland_surface_set_maximized(c->surface.xwayland,
+ edges != WLR_EDGE_NONE, edges != WLR_EDGE_NONE);
return;
+ }
#endif
if (wl_resource_get_version(c->surface.xdg->toplevel->resource)
>= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) {