mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
wayland-pointer: Remove the conditional around the surface actor too
The actor should always exist.
This commit is contained in:
parent
c8d0a66921
commit
d1619e4f53
@ -718,16 +718,11 @@ meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
|||||||
wl_fixed_t *sy)
|
wl_fixed_t *sy)
|
||||||
{
|
{
|
||||||
float xf = 0.0f, yf = 0.0f;
|
float xf = 0.0f, yf = 0.0f;
|
||||||
|
|
||||||
ClutterActor *actor = CLUTTER_ACTOR (surface->surface_actor);
|
|
||||||
|
|
||||||
if (actor)
|
|
||||||
{
|
|
||||||
ClutterPoint pos;
|
ClutterPoint pos;
|
||||||
clutter_input_device_get_coords (pointer->device, NULL, &pos);
|
|
||||||
|
|
||||||
clutter_actor_transform_stage_point (actor, pos.x, pos.y, &xf, &yf);
|
clutter_input_device_get_coords (pointer->device, NULL, &pos);
|
||||||
}
|
clutter_actor_transform_stage_point (CLUTTER_ACTOR (surface->surface_actor),
|
||||||
|
pos.x, pos.y, &xf, &yf);
|
||||||
|
|
||||||
*sx = wl_fixed_from_double (xf);
|
*sx = wl_fixed_from_double (xf);
|
||||||
*sy = wl_fixed_from_double (yf);
|
*sy = wl_fixed_from_double (yf);
|
||||||
|
Loading…
Reference in New Issue
Block a user