mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
meta-wayland-pointer: Remove the surface->window conditional
This commit is contained in:
parent
f051e05b0a
commit
657318d4d3
@ -719,8 +719,6 @@ meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
|||||||
{
|
{
|
||||||
float xf = 0.0f, yf = 0.0f;
|
float xf = 0.0f, yf = 0.0f;
|
||||||
|
|
||||||
if (surface->window)
|
|
||||||
{
|
|
||||||
ClutterActor *actor = CLUTTER_ACTOR (surface->surface_actor);
|
ClutterActor *actor = CLUTTER_ACTOR (surface->surface_actor);
|
||||||
|
|
||||||
if (actor)
|
if (actor)
|
||||||
@ -730,7 +728,6 @@ meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer,
|
|||||||
|
|
||||||
clutter_actor_transform_stage_point (actor, pos.x, pos.y, &xf, &yf);
|
clutter_actor_transform_stage_point (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