[mutter/wip/dnd-surface2: 4/18] cursor-tracker: Wrap cursor renderer's DnD surface setter
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/dnd-surface2: 4/18] cursor-tracker: Wrap cursor renderer's DnD surface setter
- Date: Tue, 30 Sep 2014 15:35:28 +0000 (UTC)
commit 4b83b031bcfcacbd48177faefddca00079ccb8f4
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Sep 26 19:05:07 2014 +0200
cursor-tracker: Wrap cursor renderer's DnD surface setter
src/backends/meta-cursor-tracker-private.h | 4 ++++
src/backends/meta-cursor-tracker.c | 12 ++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-cursor-tracker-private.h b/src/backends/meta-cursor-tracker-private.h
index f901e6e..d9246c6 100644
--- a/src/backends/meta-cursor-tracker-private.h
+++ b/src/backends/meta-cursor-tracker-private.h
@@ -62,6 +62,10 @@ void meta_cursor_tracker_set_window_cursor (MetaCursorTracker *tracker,
void meta_cursor_tracker_unset_window_cursor (MetaCursorTracker *tracker);
void meta_cursor_tracker_set_root_cursor (MetaCursorTracker *tracker,
MetaCursorReference *cursor);
+void meta_cursor_tracker_set_dnd_surface (MetaCursorTracker *tracker,
+ CoglTexture *texture,
+ int offset_x,
+ int offset_y);
void meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
int new_x,
diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c
index a649cb4..9719b85 100644
--- a/src/backends/meta-cursor-tracker.c
+++ b/src/backends/meta-cursor-tracker.c
@@ -359,6 +359,18 @@ meta_cursor_tracker_set_root_cursor (MetaCursorTracker *tracker,
}
void
+meta_cursor_tracker_set_dnd_surface (MetaCursorTracker *tracker,
+ CoglTexture *texture,
+ int offset_x,
+ int offset_y)
+{
+ g_assert (meta_is_wayland_compositor ());
+
+ meta_cursor_renderer_set_dnd_surface (tracker->renderer, texture,
+ offset_x, offset_y);
+}
+
+void
meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
int new_x,
int new_y)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]