pointer: Move update up

It seems that I forgot or messed this up in one of my reshufflings.
This commit is contained in:
Jasper St. Pierre 2014-04-18 18:55:08 -04:00
parent 020f209c45
commit c9e99ebbbf

View File

@ -352,6 +352,21 @@ count_buttons (const ClutterEvent *event)
return count;
}
void
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
const ClutterEvent *event)
{
pointer->button_count = count_buttons (event);
if (pointer->cursor_tracker)
{
ClutterPoint pos;
clutter_input_device_get_coords (pointer->device, NULL, &pos);
meta_cursor_tracker_update_position (pointer->cursor_tracker, pos.x, pos.y);
}
}
static MetaWaylandSurface *
get_focus_surface (MetaWaylandPointer *pointer)
{
@ -530,21 +545,6 @@ meta_wayland_pointer_handle_event (MetaWaylandPointer *pointer,
return FALSE;
}
void
meta_wayland_pointer_update (MetaWaylandPointer *pointer,
const ClutterEvent *event)
{
pointer->button_count = count_buttons (event);
if (pointer->cursor_tracker)
{
ClutterPoint pos;
clutter_input_device_get_coords (pointer->device, NULL, &pos);
meta_cursor_tracker_update_position (pointer->cursor_tracker, pos.x, pos.y);
}
}
static void
move_resources (struct wl_list *destination, struct wl_list *source)
{