aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-02-15 07:29:55 +0100
committerDominique Martinet <asmadeus@codewreck.org>2018-02-15 07:29:55 +0100
commit714f90a9d0027d562bf22a563edee23ca877e618 (patch)
treeff11e3649a33689be533231824321845e29c7b31
parentb46cc3cafd38fcb9fdeddfb3c26cff71f17e40bd (diff)
xdg_shell stable: allow zero-sized positioner set_anchor_rect
This is a protocol difference with xdg-shell-unstable-v6
-rw-r--r--types/wlr_xdg_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_xdg_shell.c b/types/wlr_xdg_shell.c
index 0735d416..914ee322 100644
--- a/types/wlr_xdg_shell.c
+++ b/types/wlr_xdg_shell.c
@@ -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;
}