mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
pointer: Clean up a tiny bit
This commit is contained in:
parent
7560aaee73
commit
339b856d84
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user