projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb7406
)
Correct pointer hotspot location.
author
Kristian Høgsberg
<krh@redhat.com>
Wed, 26 Nov 2008 03:38:56 +0000
(22:38 -0500)
committer
Kristian Høgsberg
<krh@redhat.com>
Wed, 26 Nov 2008 03:38:56 +0000
(22:38 -0500)
egl-compositor.c
patch
|
blob
|
history
diff --git
a/egl-compositor.c
b/egl-compositor.c
index
4471753
..
c1de51a
100644
(file)
--- a/
egl-compositor.c
+++ b/
egl-compositor.c
@@
-671,9
+671,10
@@
notify_pointer_motion(struct wl_compositor *compositor,
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);
}