aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-07-26 11:02:09 +0300
committerSimon Ser <contact@emersion.fr>2023-08-21 16:30:29 +0000
commite5300c225ee81d08111f22196d777730791f99bc (patch)
treefd25c91db7fc4729fd69a37b1022ab08be52be79
parent10ba8ebc7050d4290fa5bd9bbd3ed771c266afe3 (diff)
xdg-popup: avoid using wlr_surface_destroy_role_object()
-rw-r--r--types/xdg_shell/wlr_xdg_popup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/types/xdg_shell/wlr_xdg_popup.c b/types/xdg_shell/wlr_xdg_popup.c
index 452e9a1d..3d9b31a6 100644
--- a/types/xdg_shell/wlr_xdg_popup.c
+++ b/types/xdg_shell/wlr_xdg_popup.c
@@ -191,7 +191,7 @@ static void destroy_xdg_popup_grab(struct wlr_xdg_popup_grab *xdg_grab) {
struct wlr_xdg_popup *popup, *tmp;
wl_list_for_each_safe(popup, tmp, &xdg_grab->popups, grab_link) {
- wlr_surface_destroy_role_object(popup->base->surface);
+ wlr_xdg_popup_destroy(popup);
}
wl_list_remove(&xdg_grab->link);
@@ -275,7 +275,7 @@ static void xdg_popup_handle_grab(struct wl_client *client,
struct wlr_seat_client *seat_client =
wlr_seat_client_from_resource(seat_resource);
if (seat_client == NULL) {
- wlr_surface_destroy_role_object(popup->base->surface);
+ wlr_xdg_popup_destroy(popup);
return;
}
if (popup->sent_initial_configure) {