We need to subtract the allocation because we get absolute pointer data as
input. This doesn't matter for the theme as long as it is the root widget,
but this might change when we introduce shadows.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
set_pointer_location(theme, LOC_NOWHERE);
return;
} else {
- theme->pointer_x = x + theme->alloc.x;
- theme->pointer_y = y + theme->alloc.y;
+ theme->pointer_x = x - theme->alloc.x;
+ theme->pointer_y = y - theme->alloc.y;
set_pointer_location(theme, get_pointer_location(theme));
}