diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c index 9c4fc18ae..d0c902455 100644 --- a/src/wayland/meta-wayland-pointer.c +++ b/src/wayland/meta-wayland-pointer.c @@ -721,8 +721,7 @@ meta_wayland_pointer_get_relative_coordinates (MetaWaylandPointer *pointer, if (surface->window) { - ClutterActor *actor = - CLUTTER_ACTOR (meta_window_get_compositor_private (surface->window)); + ClutterActor *actor = CLUTTER_ACTOR (surface->surface_actor); if (actor) {