diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-05-12 15:58:19 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-07-22 13:31:09 +0200 |
commit | 8b769a3412e193e8013ec1b65a1378cec7a40642 (patch) | |
tree | 44da8d3ca6420ad1598ac523fc9e4f4b30420b50 /src/wayland/meta-wayland-tablet-tool.c | |
parent | 8d3ac8c3e9f051d3cc62389299dea462fb335482 (diff) | |
download | mutter-8b769a3412e193e8013ec1b65a1378cec7a40642.tar.gz |
wayland: Set an specific role on surfaces passed in wp_tablet_tool.set_cursor
This is now separated from the generic cursor one. This means that wl_surfaces
can't be shared across wl_pointer and wp_tablet_tool. This is a change in
tablet protocol v2.
Diffstat (limited to 'src/wayland/meta-wayland-tablet-tool.c')
-rw-r--r-- | src/wayland/meta-wayland-tablet-tool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wayland/meta-wayland-tablet-tool.c b/src/wayland/meta-wayland-tablet-tool.c index 244064884..0e8af8c36 100644 --- a/src/wayland/meta-wayland-tablet-tool.c +++ b/src/wayland/meta-wayland-tablet-tool.c @@ -31,7 +31,7 @@ #include <wayland-server.h> #include "tablet-unstable-v2-server-protocol.h" #include "meta-wayland-private.h" -#include "meta-wayland-surface-role-cursor.h" +#include "meta-wayland-surface-role-tablet-cursor.h" #include "meta-surface-actor-wayland.h" #include "meta-wayland-tablet.h" #include "meta-wayland-tablet-seat.h" @@ -439,7 +439,7 @@ tool_set_cursor (struct wl_client *client, if (surface && !meta_wayland_surface_assign_role (surface, - META_TYPE_WAYLAND_SURFACE_ROLE_CURSOR)) + META_TYPE_WAYLAND_SURFACE_ROLE_TABLET_CURSOR)) { wl_resource_post_error (resource, WL_POINTER_ERROR_ROLE, "wl_surface@%d already has a different role", |