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
This commit is contained in:
Jonas Ådahl 2013-10-05 23:20:16 +09:00 committed by Giovanni Campagna
parent 4d01eb3a23
commit dc8231c2cf

View File

@ -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);