diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-16 21:48:56 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-11-17 11:03:32 -0600 |
commit | 7bdbab04000c23638afeb8dbeddd628c4f15117c (patch) | |
tree | 8c8093291bcf43d9594b38ff5162f38a39d536ee | |
parent | dd25cdb56e00586281b6d8e79f3af91db2f747ee (diff) |
check toplevel resource instead of client's xdg_shell to set bounds
-rw-r--r-- | client.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ client_set_bounds(Client *c, int32_t width, int32_t height) if (client_is_x11(c)) return 0; #endif - if (c->surface.xdg->client->shell->version >= + if (wl_resource_get_version(c->surface.xdg->toplevel->resource) >= XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION && width >= 0 && height >= 0) return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height); return 0; |