@ -3713,8 +3713,6 @@ enable_pointer_constraint(struct weston_pointer_constraint *constraint,
constraint - > view = view ;
constraint - > view = view ;
pointer_constraint_notify_activated ( constraint ) ;
pointer_constraint_notify_activated ( constraint ) ;
weston_pointer_start_grab ( constraint - > pointer , & constraint - > grab ) ;
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
static bool
@ -3738,7 +3736,6 @@ weston_pointer_constraint_destroy(struct weston_pointer_constraint *constraint)
weston_pointer_constraint_disable ( constraint ) ;
weston_pointer_constraint_disable ( constraint ) ;
wl_list_remove ( & constraint - > pointer_destroy_listener . link ) ;
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_commit_listener . link ) ;
wl_list_remove ( & constraint - > surface_activate_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 ) ;
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
static void
pointer_constraint_surface_committed ( struct wl_listener * listener , void * data )
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 =
constraint - > surface_activate_listener . notify =
pointer_constraint_surface_activate ;
pointer_constraint_surface_activate ;
constraint - > surface_destroy_listener . notify =
pointer_constraint_surface_destroyed ;
constraint - > surface_commit_listener . notify =
constraint - > surface_commit_listener . notify =
pointer_constraint_surface_committed ;
pointer_constraint_surface_committed ;
constraint - > pointer_destroy_listener . notify =
constraint - > pointer_destroy_listener . notify =
@ -4016,8 +4001,6 @@ weston_pointer_constraint_create(struct weston_surface *surface,
& constraint - > surface_activate_listener ) ;
& constraint - > surface_activate_listener ) ;
wl_signal_add ( & pointer - > destroy_signal ,
wl_signal_add ( & pointer - > destroy_signal ,
& constraint - > pointer_destroy_listener ) ;
& constraint - > pointer_destroy_listener ) ;
wl_signal_add ( & surface - > destroy_signal ,
& constraint - > surface_destroy_listener ) ;
wl_signal_add ( & surface - > commit_signal ,
wl_signal_add ( & surface - > commit_signal ,
& constraint - > surface_commit_listener ) ;
& constraint - > surface_commit_listener ) ;