mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 20:12:06 +00:00
pointer: Clean up a tiny bit
This commit is contained in:
parent
7560aaee73
commit
339b856d84
@ -92,16 +92,17 @@ static void
|
||||
default_grab_motion (MetaWaylandPointerGrab *grab,
|
||||
const ClutterEvent *event)
|
||||
{
|
||||
MetaWaylandPointer *pointer = grab->pointer;
|
||||
struct wl_resource *resource;
|
||||
|
||||
resource = grab->pointer->focus_resource;
|
||||
resource = pointer->focus_resource;
|
||||
if (resource)
|
||||
{
|
||||
wl_fixed_t sx, sy;
|
||||
|
||||
meta_wayland_pointer_get_relative_coordinates (grab->pointer,
|
||||
grab->pointer->focus_surface,
|
||||
&sx, &sy);
|
||||
meta_wayland_pointer_get_relative_coordinates (pointer,
|
||||
pointer->focus_surface,
|
||||
&sx, &sy);
|
||||
wl_pointer_send_motion (resource, clutter_event_get_time (event), sx, sy);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user