mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Remove wl_list_init when using wl_signal_add
This commit is contained in:
parent
1782d5e7b7
commit
c8570d0e42
13 changed files with 17 additions and 84 deletions
|
|
@ -393,51 +393,41 @@ static void handle_request_set_cursor(struct wl_listener *listener,
|
|||
|
||||
void cursor_initialize(struct roots_input *input) {
|
||||
struct wlr_cursor *cursor = input->cursor;
|
||||
|
||||
|
||||
// TODO: Does this belong here
|
||||
wl_list_init(&input->touch_points);
|
||||
|
||||
wl_list_init(&input->cursor_motion.link);
|
||||
wl_signal_add(&cursor->events.motion, &input->cursor_motion);
|
||||
input->cursor_motion.notify = handle_cursor_motion;
|
||||
|
||||
wl_list_init(&input->cursor_motion_absolute.link);
|
||||
wl_signal_add(&cursor->events.motion_absolute,
|
||||
&input->cursor_motion_absolute);
|
||||
input->cursor_motion_absolute.notify = handle_cursor_motion_absolute;
|
||||
|
||||
wl_list_init(&input->cursor_button.link);
|
||||
wl_signal_add(&cursor->events.button, &input->cursor_button);
|
||||
input->cursor_button.notify = handle_cursor_button;
|
||||
|
||||
wl_list_init(&input->cursor_axis.link);
|
||||
wl_signal_add(&cursor->events.axis, &input->cursor_axis);
|
||||
input->cursor_axis.notify = handle_cursor_axis;
|
||||
|
||||
wl_list_init(&input->cursor_touch_down.link);
|
||||
wl_signal_add(&cursor->events.touch_down, &input->cursor_touch_down);
|
||||
input->cursor_touch_down.notify = handle_touch_down;
|
||||
|
||||
wl_list_init(&input->cursor_touch_up.link);
|
||||
wl_signal_add(&cursor->events.touch_up, &input->cursor_touch_up);
|
||||
input->cursor_touch_up.notify = handle_touch_up;
|
||||
|
||||
wl_list_init(&input->cursor_touch_motion.link);
|
||||
wl_signal_add(&cursor->events.touch_motion, &input->cursor_touch_motion);
|
||||
input->cursor_touch_motion.notify = handle_touch_motion;
|
||||
|
||||
wl_list_init(&input->cursor_tool_axis.link);
|
||||
wl_signal_add(&cursor->events.tablet_tool_axis, &input->cursor_tool_axis);
|
||||
input->cursor_tool_axis.notify = handle_tool_axis;
|
||||
|
||||
wl_list_init(&input->cursor_tool_tip.link);
|
||||
wl_signal_add(&cursor->events.tablet_tool_tip, &input->cursor_tool_tip);
|
||||
input->cursor_tool_tip.notify = handle_tool_tip;
|
||||
|
||||
wl_signal_add(&input->wl_seat->events.pointer_grab_end, &input->pointer_grab_end);
|
||||
input->pointer_grab_end.notify = handle_pointer_grab_end;
|
||||
|
||||
wl_list_init(&input->request_set_cursor.link);
|
||||
wl_signal_add(&input->wl_seat->events.request_set_cursor,
|
||||
&input->request_set_cursor);
|
||||
input->request_set_cursor.notify = handle_request_set_cursor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue