summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-26 16:21:28 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-26 16:21:28 -0600
commitbf5a6be73cf94fd6e5d1c6edd8ce08a4928fee40 (patch)
tree8816939f751187c5309e4c28eea1cadc9bcf143b /client.h
parent126a333354cc89ed9b635e3e30771ea15f71192e (diff)
parent1f0afcfc286463ea95d6f84f703060af5d3b64dc (diff)
Merge remote-tracking branch 'upstream/main' into wlroots-next
Diffstat (limited to 'client.h')
-rw-r--r--client.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.h b/client.h
index dded687..1dae434 100644
--- a/client.h
+++ b/client.h
@@ -352,7 +352,7 @@ client_set_tiled(Client *c, uint32_t edges)
if (client_is_x11(c))
return;
#endif
- if (wl_resource_get_version(c->surface.xdg->resource)
+ if (wl_resource_get_version(c->surface.xdg->toplevel->resource)
>= XDG_TOPLEVEL_STATE_TILED_RIGHT_SINCE_VERSION) {
wlr_xdg_toplevel_set_tiled(c->surface.xdg->toplevel, edges);
} else {