commit | 961a04cef08f6475ec82df5608b28a470832b096 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@redhat.com> | Tue Nov 25 22:38:56 2008 -0500 |
committer | Kristian Høgsberg <krh@redhat.com> | Tue Nov 25 22:38:56 2008 -0500 |
tree | 40cc9430d7f9b97098d8d22834663b76a038a861 | |
parent | ffb7406eaa955e104ab9993a4d923152ce205d31 [diff] [blame] |
Correct pointer hotspot location.
diff --git a/egl-compositor.c b/egl-compositor.c index 4471753..c1de51a 100644 --- a/egl-compositor.c +++ b/egl-compositor.c
@@ -671,9 +671,10 @@ struct wl_object *source, int x, int y) { struct egl_compositor *ec = (struct egl_compositor *) compositor; + const int hotspot_x = 16, hotspot_y = 16; - ec->pointer->map.x = x; - ec->pointer->map.y = y; + ec->pointer->map.x = x - hotspot_x; + ec->pointer->map.y = y - hotspot_y; schedule_repaint(ec); }