wayland: Check the serial when creating popups

Send popup_done immediately if the serial is incorrect so the client can
destroy its resources.

https://bugzilla.gnome.org/show_bug.cgi?id=744452
This commit is contained in:
Jonas Ådahl
2015-02-10 21:11:17 +08:00
parent f328890ed1
commit f5c65d9ea1
3 changed files with 29 additions and 2 deletions

View File

@@ -844,3 +844,9 @@ meta_wayland_pointer_can_grab_surface (MetaWaylandPointer *pointer,
pointer->grab_serial == serial &&
pointer->focus_surface == surface);
}
gboolean
meta_wayland_pointer_can_popup (MetaWaylandPointer *pointer, uint32_t serial)
{
return pointer->grab_serial == serial;
}