diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-02-02 20:54:29 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-02-02 21:06:12 +0300 |
commit | c1a2c09ade789e5667bbe2dc04c6781d37fdab83 (patch) | |
tree | 5adb38858654091385797656b8c73533baee1097 | |
parent | 7ed60c54a0b7c10a0f70f54320e270691d40d673 (diff) | |
download | wlroots-c1a2c09ade789e5667bbe2dc04c6781d37fdab83.tar.xz |
xdg-popup: send invalid_positioner to the right resource
-rw-r--r-- | types/xdg_shell/wlr_xdg_popup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/xdg_shell/wlr_xdg_popup.c b/types/xdg_shell/wlr_xdg_popup.c index 6fca3316..d923e923 100644 --- a/types/xdg_shell/wlr_xdg_popup.c +++ b/types/xdg_shell/wlr_xdg_popup.c @@ -307,7 +307,7 @@ void create_xdg_popup(struct wlr_xdg_surface *surface, struct wlr_xdg_positioner_resource *positioner, uint32_t id) { if (positioner->attrs.size.width == 0 || positioner->attrs.anchor_rect.width == 0) { - wl_resource_post_error(surface->resource, + wl_resource_post_error(surface->client->resource, XDG_WM_BASE_ERROR_INVALID_POSITIONER, "positioner object is not complete"); return; |