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

https://bugzilla.gnome.org/show_bug.cgi?id=763431
This commit is contained in:
Jonas Ådahl 2016-01-21 16:51:25 +08:00
parent e68b5f6655
commit d9b98bced9

View File

@ -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;
}