Remove wl_list_init when using wl_signal_add

This commit is contained in:
emersion 2017-10-21 12:35:51 +02:00
parent 1782d5e7b7
commit c8570d0e42
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
13 changed files with 17 additions and 84 deletions

View file

@ -284,7 +284,7 @@ int main(int argc, char *argv[]) {
state.cursor_motion.notify = handle_cursor_motion;
wl_signal_add(&state.cursor->events.motion_absolute,
&state.cursor_motion_absolute);
&state.cursor_motion_absolute);
state.cursor_motion_absolute.notify = handle_cursor_motion_absolute;
wl_signal_add(&state.cursor->events.button, &state.cursor_button);
@ -308,7 +308,7 @@ int main(int argc, char *argv[]) {
// tool events
wl_signal_add(&state.cursor->events.tablet_tool_axis,
&state.tablet_tool_axis);
&state.tablet_tool_axis);
state.tablet_tool_axis.notify = handle_tablet_tool_axis;
struct compositor_state compositor = { 0 };