mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-17 08:56:28 -05:00
xdg-popup: send invalid_positioner to the right resource
This commit is contained in:
parent
7ed60c54a0
commit
c1a2c09ade
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ void create_xdg_popup(struct wlr_xdg_surface *surface,
|
||||||
struct wlr_xdg_positioner_resource *positioner, uint32_t id) {
|
struct wlr_xdg_positioner_resource *positioner, uint32_t id) {
|
||||||
if (positioner->attrs.size.width == 0 ||
|
if (positioner->attrs.size.width == 0 ||
|
||||||
positioner->attrs.anchor_rect.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,
|
XDG_WM_BASE_ERROR_INVALID_POSITIONER,
|
||||||
"positioner object is not complete");
|
"positioner object is not complete");
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue