[mutter] wayland/xdg-shell: Send popup_done if failed to start grab



commit d9b98bced99b309459822bc3e2e900335522a626
Author: Jonas Ådahl <jadahl gmail com>
Date:   Thu Jan 21 16:51:25 2016 +0800

    wayland/xdg-shell: Send popup_done if failed to start grab
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763431

 src/wayland/meta-wayland-xdg-shell.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c
index 30520ea..541c377 100644
--- a/src/wayland/meta-wayland-xdg-shell.c
+++ b/src/wayland/meta-wayland-xdg-shell.c
@@ -502,6 +502,7 @@ xdg_shell_get_xdg_popup (struct wl_client   *client,
   popup = meta_wayland_pointer_start_popup_grab (&seat->pointer, surface);
   if (popup == NULL)
     {
+      xdg_popup_send_popup_done (surface->xdg_popup);
       meta_wayland_surface_destroy_window (surface);
       return;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]