wayland: Abstract access to the actor corresponding to a wl_surface

The actor itself will be shuffled around, abstract all external
access to it behind a function to make that easier later on.
This commit is contained in:
Carlos Garnacho
2018-04-06 12:29:37 +02:00
parent 44502be560
commit 70036429bd
7 changed files with 33 additions and 16 deletions

View File

@ -699,12 +699,12 @@ meta_pointer_confinement_wayland_new (MetaWaylandPointerConstraint *constraint)
confinement->constraint = constraint;
surface = meta_wayland_pointer_constraint_get_surface (constraint);
g_signal_connect_object (surface->surface_actor,
g_signal_connect_object (meta_wayland_surface_get_actor (surface),
"notify::allocation",
G_CALLBACK (surface_actor_allocation_notify),
confinement,
0);
g_signal_connect_object (surface->surface_actor,
g_signal_connect_object (meta_wayland_surface_get_actor (surface),
"notify::position",
G_CALLBACK (surface_actor_position_notify),
confinement,