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:
@ -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,
|
||||
|
Reference in New Issue
Block a user