mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
xdg_shell stable: allow zero-sized positioner set_anchor_rect
This is a protocol difference with xdg-shell-unstable-v6
This commit is contained in:
parent
b46cc3cafd
commit
714f90a9d0
1 changed files with 2 additions and 2 deletions
|
@ -252,10 +252,10 @@ static void xdg_positioner_protocol_set_anchor_rect(struct wl_client *client,
|
|||
struct wlr_xdg_positioner *positioner =
|
||||
wl_resource_get_user_data(resource);
|
||||
|
||||
if (width < 1 || height < 1) {
|
||||
if (width < 0 || height < 0) {
|
||||
wl_resource_post_error(resource,
|
||||
XDG_POSITIONER_ERROR_INVALID_INPUT,
|
||||
"width and height must be positives and non-zero");
|
||||
"width and height must be positives");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue