mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
xdg-shell: improve shell version check
This commit is contained in:
parent
d57d2e0e36
commit
e7b217efb9
1 changed files with 2 additions and 1 deletions
|
@ -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 wlr_xdg_toplevel_set_tiled(struct wlr_xdg_toplevel *toplevel,
|
||||||
uint32_t tiled) {
|
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;
|
toplevel->scheduled.tiled = tiled;
|
||||||
return wlr_xdg_surface_schedule_configure(toplevel->base);
|
return wlr_xdg_surface_schedule_configure(toplevel->base);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue