xdg-shell: destroy child popups on unmap

It doesn't make sense to keep popups opened when unmapped. We also need to do
so in wlr_xdg_popup_destroy so that popups are destroyed in the correct order.
This commit is contained in:
emersion 2019-02-05 19:27:23 +01:00
parent b2f56ad4a8
commit 7f5967234c
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 17 additions and 19 deletions

View file

@ -33,7 +33,6 @@ void create_xdg_popup(struct wlr_xdg_surface *xdg_surface,
void handle_xdg_surface_popup_committed(struct wlr_xdg_surface *surface);
struct wlr_xdg_popup_grab *get_xdg_shell_popup_grab_from_seat(
struct wlr_xdg_shell *shell, struct wlr_seat *seat);
void destroy_xdg_popup(struct wlr_xdg_surface *surface);
void create_xdg_toplevel(struct wlr_xdg_surface *xdg_surface,
uint32_t id);