pointer: Clean up a tiny bit

This commit is contained in:
Jasper St. Pierre 2014-04-16 15:10:48 -04:00
parent 7560aaee73
commit 339b856d84

View File

@ -92,15 +92,16 @@ static void
default_grab_motion (MetaWaylandPointerGrab *grab, default_grab_motion (MetaWaylandPointerGrab *grab,
const ClutterEvent *event) const ClutterEvent *event)
{ {
MetaWaylandPointer *pointer = grab->pointer;
struct wl_resource *resource; struct wl_resource *resource;
resource = grab->pointer->focus_resource; resource = pointer->focus_resource;
if (resource) if (resource)
{ {
wl_fixed_t sx, sy; wl_fixed_t sx, sy;
meta_wayland_pointer_get_relative_coordinates (grab->pointer, meta_wayland_pointer_get_relative_coordinates (pointer,
grab->pointer->focus_surface, pointer->focus_surface,
&sx, &sy); &sx, &sy);
wl_pointer_send_motion (resource, clutter_event_get_time (event), sx, sy); wl_pointer_send_motion (resource, clutter_event_get_time (event), sx, sy);
} }