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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user