xdg-popup: destroy popup-less grab

This also fixes a seat destruction segfaulting if xdg-shell was
destroyed first.
This commit is contained in:
Kirill Primak 2022-01-08 22:52:56 +03:00
parent d2b36b7bd1
commit 88f3040438
2 changed files with 19 additions and 9 deletions

View file

@ -32,8 +32,6 @@ void create_xdg_popup(struct wlr_xdg_surface *surface,
struct wlr_xdg_positioner_resource *positioner, uint32_t id);
void unmap_xdg_popup(struct wlr_xdg_popup *popup);
void handle_xdg_popup_committed(struct wlr_xdg_popup *popup);
struct wlr_xdg_popup_grab *get_xdg_shell_popup_grab_from_seat(
struct wlr_xdg_shell *shell, struct wlr_seat *seat);
void create_xdg_toplevel(struct wlr_xdg_surface *surface,
uint32_t id);