[mutter/wip/dnd-surface2: 12/18] backend: Add "DnD failed" plumbing to the MetaCursorTracker
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/dnd-surface2: 12/18] backend: Add "DnD failed" plumbing to the MetaCursorTracker
- Date: Tue, 30 Sep 2014 15:32:28 +0000 (UTC)
commit aba81603b963547c07d5600992c99241a6389079
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Sep 30 16:57:07 2014 +0200
backend: Add "DnD failed" plumbing to the MetaCursorTracker
src/backends/meta-cursor-tracker-private.h | 3 +++
src/backends/meta-cursor-tracker.c | 10 ++++++++++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/backends/meta-cursor-tracker-private.h b/src/backends/meta-cursor-tracker-private.h
index ef97556..0b32312 100644
--- a/src/backends/meta-cursor-tracker-private.h
+++ b/src/backends/meta-cursor-tracker-private.h
@@ -73,6 +73,9 @@ void meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
void meta_cursor_tracker_update_dnd_surface_position (MetaCursorTracker *tracker,
int new_x,
int new_y);
+void meta_cursor_tracker_dnd_failed (MetaCursorTracker *tracker,
+ int dest_x,
+ int dest_y);
MetaCursorReference * meta_cursor_tracker_get_displayed_cursor (MetaCursorTracker *tracker);
diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c
index 549a934..4dc4948 100644
--- a/src/backends/meta-cursor-tracker.c
+++ b/src/backends/meta-cursor-tracker.c
@@ -371,6 +371,16 @@ meta_cursor_tracker_set_dnd_surface (MetaCursorTracker *tracker,
}
void
+meta_cursor_tracker_dnd_failed (MetaCursorTracker *tracker,
+ int dest_x,
+ int dest_y)
+{
+ g_assert (meta_is_wayland_compositor ());
+
+ meta_cursor_renderer_dnd_failed (tracker->renderer, dest_x, dest_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]