2015-10-21 10:36:44 -04:00
|
|
|
/*
|
|
|
|
* Wayland Support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <cogl/cogl.h>
|
|
|
|
#include <cogl/cogl-wayland-server.h>
|
|
|
|
#include "meta-wayland-surface-role-cursor.h"
|
|
|
|
#include "meta-wayland-buffer.h"
|
|
|
|
#include "meta-xwayland.h"
|
|
|
|
#include "screen-private.h"
|
2016-08-16 12:21:46 -04:00
|
|
|
#include "meta-wayland-private.h"
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
typedef struct _MetaWaylandSurfaceRoleCursorPrivate MetaWaylandSurfaceRoleCursorPrivate;
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
struct _MetaWaylandSurfaceRoleCursorPrivate
|
|
|
|
{
|
2015-10-21 10:36:44 -04:00
|
|
|
int hot_x;
|
|
|
|
int hot_y;
|
|
|
|
MetaCursorSprite *cursor_sprite;
|
|
|
|
MetaCursorRenderer *cursor_renderer;
|
|
|
|
MetaWaylandBuffer *buffer;
|
2016-08-16 12:21:46 -04:00
|
|
|
struct wl_list frame_callbacks;
|
|
|
|
gulong cursor_painted_handler_id;
|
2015-10-21 10:36:44 -04:00
|
|
|
};
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
G_DEFINE_TYPE_WITH_PRIVATE (MetaWaylandSurfaceRoleCursor,
|
|
|
|
meta_wayland_surface_role_cursor,
|
|
|
|
META_TYPE_WAYLAND_SURFACE_ROLE)
|
2015-10-21 10:36:44 -04:00
|
|
|
|
|
|
|
static void
|
|
|
|
update_cursor_sprite_texture (MetaWaylandSurfaceRoleCursor *cursor_role)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv = meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
MetaWaylandSurface *surface = meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (cursor_role));
|
|
|
|
MetaWaylandBuffer *buffer = meta_wayland_surface_get_buffer (surface);
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaCursorSprite *cursor_sprite = priv->cursor_sprite;
|
2015-10-21 10:36:44 -04:00
|
|
|
|
|
|
|
g_return_if_fail (!buffer || buffer->texture);
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
if (!priv->cursor_renderer || !cursor_sprite)
|
2015-10-21 10:36:44 -04:00
|
|
|
return;
|
|
|
|
|
|
|
|
if (buffer)
|
|
|
|
{
|
|
|
|
meta_cursor_sprite_set_texture (cursor_sprite,
|
|
|
|
buffer->texture,
|
2016-05-12 09:53:07 -04:00
|
|
|
priv->hot_x * surface->scale,
|
|
|
|
priv->hot_y * surface->scale);
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
if (priv->buffer)
|
2015-10-21 10:36:44 -04:00
|
|
|
{
|
|
|
|
struct wl_resource *buffer_resource;
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
g_assert (priv->buffer == buffer);
|
2015-10-21 10:36:44 -04:00
|
|
|
buffer_resource = buffer->resource;
|
2016-05-12 09:53:07 -04:00
|
|
|
meta_cursor_renderer_realize_cursor_from_wl_buffer (priv->cursor_renderer,
|
2015-10-21 10:36:44 -04:00
|
|
|
cursor_sprite,
|
|
|
|
buffer_resource);
|
|
|
|
|
|
|
|
meta_wayland_surface_unref_buffer_use_count (surface);
|
2016-05-12 09:53:07 -04:00
|
|
|
g_clear_object (&priv->buffer);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
meta_cursor_sprite_set_texture (cursor_sprite, NULL, 0, 0);
|
|
|
|
}
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
meta_cursor_renderer_force_update (priv->cursor_renderer);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cursor_sprite_prepare_at (MetaCursorSprite *cursor_sprite,
|
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRole *role = META_WAYLAND_SURFACE_ROLE (cursor_role);
|
|
|
|
MetaWaylandSurface *surface = meta_wayland_surface_role_get_surface (role);
|
|
|
|
MetaDisplay *display = meta_get_display ();
|
|
|
|
MetaScreen *screen = display->screen;
|
|
|
|
|
|
|
|
if (!meta_xwayland_is_xwayland_surface (surface))
|
|
|
|
{
|
2016-11-25 01:31:38 -05:00
|
|
|
const MetaLogicalMonitor *logical_monitor;
|
|
|
|
|
|
|
|
logical_monitor = meta_screen_get_logical_monitor_for_point (screen,
|
|
|
|
x, y);
|
|
|
|
if (logical_monitor)
|
|
|
|
{
|
|
|
|
float texture_scale;
|
|
|
|
|
|
|
|
texture_scale = (float) logical_monitor->scale / surface->scale;
|
|
|
|
meta_cursor_sprite_set_texture_scale (cursor_sprite, texture_scale);
|
|
|
|
}
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
meta_wayland_surface_update_outputs (surface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cursor_surface_role_assigned (MetaWaylandSurfaceRole *surface_role)
|
|
|
|
{
|
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
2016-09-01 09:02:32 -04:00
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (surface_role);
|
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-08-16 12:21:46 -04:00
|
|
|
wl_list_insert_list (&priv->frame_callbacks,
|
|
|
|
&surface->pending_frame_callback_list);
|
|
|
|
wl_list_init (&surface->pending_frame_callback_list);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cursor_surface_role_pre_commit (MetaWaylandSurfaceRole *surface_role,
|
|
|
|
MetaWaylandPendingState *pending)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (surface_role);
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
if (pending->newly_attached && priv->buffer)
|
2015-10-21 10:36:44 -04:00
|
|
|
{
|
|
|
|
meta_wayland_surface_unref_buffer_use_count (surface);
|
2016-05-12 09:53:07 -04:00
|
|
|
g_clear_object (&priv->buffer);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cursor_surface_role_commit (MetaWaylandSurfaceRole *surface_role,
|
|
|
|
MetaWaylandPendingState *pending)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (surface_role);
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
MetaWaylandBuffer *buffer = meta_wayland_surface_get_buffer (surface);
|
|
|
|
|
|
|
|
if (pending->newly_attached)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
g_set_object (&priv->buffer, buffer);
|
|
|
|
if (priv->buffer)
|
2015-10-21 10:36:44 -04:00
|
|
|
meta_wayland_surface_ref_buffer_use_count (surface);
|
|
|
|
}
|
|
|
|
|
2016-08-16 12:21:46 -04:00
|
|
|
wl_list_insert_list (&priv->frame_callbacks,
|
|
|
|
&pending->frame_callback_list);
|
|
|
|
wl_list_init (&pending->frame_callback_list);
|
2015-10-21 10:36:44 -04:00
|
|
|
|
|
|
|
if (pending->newly_attached)
|
|
|
|
update_cursor_sprite_texture (META_WAYLAND_SURFACE_ROLE_CURSOR (surface_role));
|
|
|
|
}
|
|
|
|
|
|
|
|
static gboolean
|
2016-11-25 01:38:28 -05:00
|
|
|
cursor_surface_role_is_on_logical_monitor (MetaWaylandSurfaceRole *role,
|
|
|
|
MetaLogicalMonitor *logical_monitor)
|
2015-10-21 10:36:44 -04:00
|
|
|
{
|
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (role);
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (surface->role);
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
MetaRectangle rect;
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
rect = meta_cursor_renderer_calculate_rect (priv->cursor_renderer,
|
|
|
|
priv->cursor_sprite);
|
2016-11-25 01:31:38 -05:00
|
|
|
return meta_rectangle_overlap (&rect, &logical_monitor->rect);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
cursor_surface_role_dispose (GObject *object)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (object);
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
2015-10-21 10:36:44 -04:00
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (META_WAYLAND_SURFACE_ROLE (object));
|
2016-08-16 12:21:46 -04:00
|
|
|
MetaWaylandFrameCallback *cb, *next;
|
|
|
|
|
|
|
|
wl_list_for_each_safe (cb, next, &priv->frame_callbacks, link)
|
|
|
|
wl_resource_destroy (cb->resource);
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
g_signal_handlers_disconnect_by_func (priv->cursor_sprite,
|
2015-10-21 10:36:44 -04:00
|
|
|
cursor_sprite_prepare_at, cursor_role);
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
g_clear_object (&priv->cursor_renderer);
|
|
|
|
g_clear_object (&priv->cursor_sprite);
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
if (priv->buffer)
|
2015-10-21 10:36:44 -04:00
|
|
|
{
|
|
|
|
meta_wayland_surface_unref_buffer_use_count (surface);
|
2016-05-12 09:53:07 -04:00
|
|
|
g_clear_object (&priv->buffer);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
G_OBJECT_CLASS (meta_wayland_surface_role_cursor_parent_class)->dispose (object);
|
|
|
|
}
|
|
|
|
|
2016-08-25 05:38:45 -04:00
|
|
|
static void
|
|
|
|
cursor_surface_role_constructed (GObject *object)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CURSOR (object);
|
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
MetaWaylandSurfaceRole *surface_role =
|
|
|
|
META_WAYLAND_SURFACE_ROLE (cursor_role);
|
|
|
|
MetaWaylandSurface *surface =
|
|
|
|
meta_wayland_surface_role_get_surface (surface_role);
|
|
|
|
MetaWaylandBuffer *buffer;
|
|
|
|
|
|
|
|
buffer = meta_wayland_surface_get_buffer (surface);
|
2016-09-07 04:23:25 -04:00
|
|
|
|
|
|
|
g_warn_if_fail (!buffer || buffer->resource);
|
|
|
|
|
|
|
|
if (buffer && buffer->resource)
|
2016-08-25 05:38:45 -04:00
|
|
|
{
|
|
|
|
g_set_object (&priv->buffer, buffer);
|
|
|
|
meta_wayland_surface_ref_buffer_use_count (surface);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-21 10:36:44 -04:00
|
|
|
static void
|
|
|
|
meta_wayland_surface_role_cursor_init (MetaWaylandSurfaceRoleCursor *role)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (role);
|
|
|
|
|
|
|
|
priv->cursor_sprite = meta_cursor_sprite_new ();
|
|
|
|
g_signal_connect_object (priv->cursor_sprite,
|
2015-10-21 10:36:44 -04:00
|
|
|
"prepare-at",
|
|
|
|
G_CALLBACK (cursor_sprite_prepare_at),
|
|
|
|
role,
|
|
|
|
0);
|
2016-08-16 12:21:46 -04:00
|
|
|
wl_list_init (&priv->frame_callbacks);
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
static void
|
|
|
|
meta_wayland_surface_role_cursor_class_init (MetaWaylandSurfaceRoleCursorClass *klass)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleClass *surface_role_class =
|
|
|
|
META_WAYLAND_SURFACE_ROLE_CLASS (klass);
|
|
|
|
GObjectClass *object_class = G_OBJECT_CLASS (klass);
|
|
|
|
|
|
|
|
surface_role_class->assigned = cursor_surface_role_assigned;
|
|
|
|
surface_role_class->pre_commit = cursor_surface_role_pre_commit;
|
|
|
|
surface_role_class->commit = cursor_surface_role_commit;
|
2016-11-25 01:38:28 -05:00
|
|
|
surface_role_class->is_on_logical_monitor = cursor_surface_role_is_on_logical_monitor;
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-08-25 05:38:45 -04:00
|
|
|
object_class->constructed = cursor_surface_role_constructed;
|
2015-10-21 10:36:44 -04:00
|
|
|
object_class->dispose = cursor_surface_role_dispose;
|
|
|
|
}
|
|
|
|
|
|
|
|
MetaCursorSprite *
|
|
|
|
meta_wayland_surface_role_cursor_get_sprite (MetaWaylandSurfaceRoleCursor *cursor_role)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
|
|
|
|
return priv->cursor_sprite;
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_surface_role_cursor_set_hotspot (MetaWaylandSurfaceRoleCursor *cursor_role,
|
|
|
|
gint hotspot_x,
|
|
|
|
gint hotspot_y)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
|
|
|
|
if (priv->hot_x == hotspot_x &&
|
|
|
|
priv->hot_y == hotspot_y)
|
2015-10-21 10:36:44 -04:00
|
|
|
return;
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
priv->hot_x = hotspot_x;
|
|
|
|
priv->hot_y = hotspot_y;
|
2015-10-21 10:36:44 -04:00
|
|
|
update_cursor_sprite_texture (cursor_role);
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
meta_wayland_surface_role_cursor_get_hotspot (MetaWaylandSurfaceRoleCursor *cursor_role,
|
|
|
|
gint *hotspot_x,
|
|
|
|
gint *hotspot_y)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
|
2015-10-21 10:36:44 -04:00
|
|
|
if (hotspot_x)
|
2016-05-12 09:53:07 -04:00
|
|
|
*hotspot_x = priv->hot_x;
|
2015-10-21 10:36:44 -04:00
|
|
|
if (hotspot_y)
|
2016-05-12 09:53:07 -04:00
|
|
|
*hotspot_y = priv->hot_y;
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|
|
|
|
|
2016-08-16 12:21:46 -04:00
|
|
|
static void
|
|
|
|
on_cursor_painted (MetaCursorRenderer *renderer,
|
|
|
|
MetaCursorSprite *displayed_sprite,
|
|
|
|
MetaWaylandSurfaceRoleCursor *cursor_role)
|
|
|
|
{
|
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
guint32 time = (guint32) (g_get_monotonic_time () / 1000);
|
|
|
|
|
|
|
|
if (displayed_sprite != priv->cursor_sprite)
|
|
|
|
return;
|
|
|
|
|
|
|
|
while (!wl_list_empty (&priv->frame_callbacks))
|
|
|
|
{
|
|
|
|
MetaWaylandFrameCallback *callback =
|
|
|
|
wl_container_of (priv->frame_callbacks.next, callback, link);
|
|
|
|
|
|
|
|
wl_callback_send_done (callback->resource, time);
|
|
|
|
wl_resource_destroy (callback->resource);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-21 10:36:44 -04:00
|
|
|
void
|
|
|
|
meta_wayland_surface_role_cursor_set_renderer (MetaWaylandSurfaceRoleCursor *cursor_role,
|
|
|
|
MetaCursorRenderer *renderer)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
|
|
|
|
if (priv->cursor_renderer == renderer)
|
2015-10-21 10:36:44 -04:00
|
|
|
return;
|
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
if (priv->cursor_renderer)
|
2016-08-16 12:21:46 -04:00
|
|
|
{
|
|
|
|
g_signal_handler_disconnect (priv->cursor_renderer,
|
|
|
|
priv->cursor_painted_handler_id);
|
|
|
|
priv->cursor_painted_handler_id = 0;
|
|
|
|
g_object_unref (priv->cursor_renderer);
|
|
|
|
}
|
|
|
|
if (renderer)
|
|
|
|
{
|
|
|
|
priv->cursor_painted_handler_id =
|
|
|
|
g_signal_connect_object (renderer, "cursor-painted",
|
|
|
|
G_CALLBACK (on_cursor_painted), cursor_role, 0);
|
|
|
|
g_object_ref (renderer);
|
|
|
|
}
|
2015-10-21 10:36:44 -04:00
|
|
|
|
2016-05-12 09:53:07 -04:00
|
|
|
priv->cursor_renderer = renderer;
|
2015-10-21 10:36:44 -04:00
|
|
|
update_cursor_sprite_texture (cursor_role);
|
|
|
|
}
|
|
|
|
|
|
|
|
MetaCursorRenderer *
|
|
|
|
meta_wayland_surface_role_cursor_get_renderer (MetaWaylandSurfaceRoleCursor *cursor_role)
|
|
|
|
{
|
2016-05-12 09:53:07 -04:00
|
|
|
MetaWaylandSurfaceRoleCursorPrivate *priv =
|
|
|
|
meta_wayland_surface_role_cursor_get_instance_private (cursor_role);
|
|
|
|
|
|
|
|
return priv->cursor_renderer;
|
2015-10-21 10:36:44 -04:00
|
|
|
}
|