clutter: Handle grabs from CLUTTER_TABLET_DEVICE devices

Those would result in warnings. Actually, these should be dealt
similarly to pointers, as they get their own standalone pointer
cursor in Wayland.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/issues/540
This commit is contained in:
Carlos Garnacho 2018-09-07 15:15:21 +02:00
parent 176117c5f7
commit 9cfd185316

View File

@ -2757,6 +2757,7 @@ clutter_input_device_grab (ClutterInputDevice *device,
switch (device->device_type) switch (device->device_type)
{ {
case CLUTTER_POINTER_DEVICE: case CLUTTER_POINTER_DEVICE:
case CLUTTER_TABLET_DEVICE:
grab_actor = &(device->pointer_grab_actor); grab_actor = &(device->pointer_grab_actor);
break; break;
@ -2802,6 +2803,7 @@ clutter_input_device_ungrab (ClutterInputDevice *device)
switch (device->device_type) switch (device->device_type)
{ {
case CLUTTER_POINTER_DEVICE: case CLUTTER_POINTER_DEVICE:
case CLUTTER_TABLET_DEVICE:
grab_actor = &(device->pointer_grab_actor); grab_actor = &(device->pointer_grab_actor);
break; break;