diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-15 00:27:31 -0500 |
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-07-15 00:27:31 -0500 |
| commit | 058c699ac2552db13ea8bbef64182c59cceaf55c (patch) | |
| tree | dcb850a3257d50e07790b4e9fd2df0535688b51d | |
| parent | chase wlroots input_device changes (diff) | |
| download | dwl-058c699ac2552db13ea8bbef64182c59cceaf55c.tar.gz dwl-058c699ac2552db13ea8bbef64182c59cceaf55c.tar.bz2 dwl-058c699ac2552db13ea8bbef64182c59cceaf55c.tar.xz dwl-058c699ac2552db13ea8bbef64182c59cceaf55c.tar.zst dwl-058c699ac2552db13ea8bbef64182c59cceaf55c.zip | |
only set bounds for clients that support it
Diffstat (limited to '')
| -rw-r--r-- | client.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -52,7 +52,10 @@ client_set_bounds(Client *c, int32_t width, int32_t height) if (client_is_x11(c)) return 0; #endif - return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height); + if (c->surface.xdg->client->shell->version >= + XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION) + return wlr_xdg_toplevel_set_bounds(c->surface.xdg->toplevel, width, height); + return 0; } static inline void |
