pointer: Move update up
It seems that I forgot or messed this up in one of my reshufflings.
This commit is contained in:
parent
020f209c45
commit
c9e99ebbbf
@ -352,6 +352,21 @@ count_buttons (const ClutterEvent *event)
|
|||||||
return count;
|
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 *
|
static MetaWaylandSurface *
|
||||||
get_focus_surface (MetaWaylandPointer *pointer)
|
get_focus_surface (MetaWaylandPointer *pointer)
|
||||||
{
|
{
|
||||||
@ -530,21 +545,6 @@ meta_wayland_pointer_handle_event (MetaWaylandPointer *pointer,
|
|||||||
return FALSE;
|
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
|
static void
|
||||||
move_resources (struct wl_list *destination, struct wl_list *source)
|
move_resources (struct wl_list *destination, struct wl_list *source)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user