diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-06-11 20:22:54 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-06-11 20:22:54 +0300 |
commit | e7b217efb97b603ba992b48fee21b58cc2b3644e (patch) | |
tree | 465aa45a269e0d12facb0aa4933fe522f2544221 | |
parent | d57d2e0e368bbf0b94246a3f6dbeb26c7b048993 (diff) |
xdg-shell: improve shell version check
-rw-r--r-- | types/xdg_shell/wlr_xdg_toplevel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/types/xdg_shell/wlr_xdg_toplevel.c b/types/xdg_shell/wlr_xdg_toplevel.c index a7ca8257..f929508f 100644 --- a/types/xdg_shell/wlr_xdg_toplevel.c +++ b/types/xdg_shell/wlr_xdg_toplevel.c @@ -506,7 +506,8 @@ uint32_t wlr_xdg_toplevel_set_resizing(struct wlr_xdg_toplevel *toplevel, uint32_t wlr_xdg_toplevel_set_tiled(struct wlr_xdg_toplevel *toplevel, uint32_t tiled) { - assert(toplevel->base->client->shell->version >= 2); + assert(toplevel->base->client->shell->version >= + XDG_TOPLEVEL_STATE_TILED_LEFT_SINCE_VERSION); toplevel->scheduled.tiled = tiled; return wlr_xdg_surface_schedule_configure(toplevel->base); } |