@ -3713,8 +3713,6 @@ enable_pointer_constraint(struct weston_pointer_constraint *constraint,
constraint - > view = view ;
pointer_constraint_notify_activated ( constraint ) ;
weston_pointer_start_grab ( constraint - > pointer , & constraint - > grab ) ;
wl_list_remove ( & constraint - > surface_destroy_listener . link ) ;
wl_list_init ( & constraint - > surface_destroy_listener . link ) ;
}
static bool
@ -3738,7 +3736,6 @@ weston_pointer_constraint_destroy(struct weston_pointer_constraint *constraint)
weston_pointer_constraint_disable ( constraint ) ;
wl_list_remove ( & constraint - > pointer_destroy_listener . link ) ;
wl_list_remove ( & constraint - > surface_destroy_listener . link ) ;
wl_list_remove ( & constraint - > surface_commit_listener . link ) ;
wl_list_remove ( & constraint - > surface_activate_listener . link ) ;
@ -3934,16 +3931,6 @@ pointer_constraint_pointer_destroyed(struct wl_listener *listener, void *data)
weston_pointer_constraint_destroy ( constraint ) ;
}
static void
pointer_constraint_surface_destroyed ( struct wl_listener * listener , void * data )
{
struct weston_pointer_constraint * constraint =
container_of ( listener , struct weston_pointer_constraint ,
surface_destroy_listener ) ;
weston_pointer_constraint_destroy ( constraint ) ;
}
static void
pointer_constraint_surface_committed ( struct wl_listener * listener , void * data )
{
@ -4005,8 +3992,6 @@ weston_pointer_constraint_create(struct weston_surface *surface,
constraint - > surface_activate_listener . notify =
pointer_constraint_surface_activate ;
constraint - > surface_destroy_listener . notify =
pointer_constraint_surface_destroyed ;
constraint - > surface_commit_listener . notify =
pointer_constraint_surface_committed ;
constraint - > pointer_destroy_listener . notify =
@ -4016,8 +4001,6 @@ weston_pointer_constraint_create(struct weston_surface *surface,
& constraint - > surface_activate_listener ) ;
wl_signal_add ( & pointer - > destroy_signal ,
& constraint - > pointer_destroy_listener ) ;
wl_signal_add ( & surface - > destroy_signal ,
& constraint - > surface_destroy_listener ) ;
wl_signal_add ( & surface - > commit_signal ,
& constraint - > surface_commit_listener ) ;