mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
wayland: Pull in a fix for a FIXME from Weston
This commit is contained in:
parent
f1dc1a0cbc
commit
5298cf0a3a
@ -318,8 +318,12 @@ data_device_start_drag (struct wl_client *client,
|
|||||||
{
|
{
|
||||||
MetaWaylandSeat *seat = wl_resource_get_user_data (resource);
|
MetaWaylandSeat *seat = wl_resource_get_user_data (resource);
|
||||||
MetaWaylandDragGrab *drag_grab;
|
MetaWaylandDragGrab *drag_grab;
|
||||||
/* FIXME: Check that client has implicit grab on the origin
|
|
||||||
* surface that matches the given time. */
|
if ((seat->pointer.button_count == 0 ||
|
||||||
|
seat->pointer.grab_serial != serial ||
|
||||||
|
!seat->pointer.focus_surface ||
|
||||||
|
seat->pointer.focus_surface != wl_resource_get_user_data (origin_resource)))
|
||||||
|
return;
|
||||||
|
|
||||||
/* FIXME: Check that the data source type array isn't empty. */
|
/* FIXME: Check that the data source type array isn't empty. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user