[mutter/wayland] MetaCursorTracker: Set hot spot when cursor buffer set from wl_buffer
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] MetaCursorTracker: Set hot spot when cursor buffer set from wl_buffer
- Date: Mon, 21 Oct 2013 19:14:04 +0000 (UTC)
commit dc8231c2cf4bc8607484561ab336d4aa4517544c
Author: Jonas Ådahl <jadahl gmail com>
Date: Sat Oct 5 23:20:16 2013 +0900
MetaCursorTracker: Set hot spot when cursor buffer set from wl_buffer
When creating MetaCursorReference using a wl_resource, use the provided
hotspot coordinates.
This makes clients such as clickdot work more correctly.
Signed-off-by: Jonas Ådahl <jadahl gmail com>
https://bugzilla.gnome.org/show_bug.cgi?id=709593
src/core/meta-cursor-tracker.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/core/meta-cursor-tracker.c b/src/core/meta-cursor-tracker.c
index 5898df2..cff5f3e 100644
--- a/src/core/meta-cursor-tracker.c
+++ b/src/core/meta-cursor-tracker.c
@@ -352,6 +352,8 @@ meta_cursor_reference_from_buffer (MetaCursorTracker *tracker,
self = g_slice_new0 (MetaCursorReference);
self->ref_count = 1;
+ self->hot_x = hot_x;
+ self->hot_y = hot_y;
backend = clutter_get_default_backend ();
cogl_context = clutter_backend_get_cogl_context (backend);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]