mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 11:16:30 +00:00
check toplevel resource instead of client's xdg_shell to set bounds
This commit is contained in:
parent
dd25cdb56e
commit
7bdbab0400
1 changed files with 1 additions and 1 deletions
2
client.h
2
client.h
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue