rename new_input listener on input-manager

master
Tony Crisci 7 years ago
parent 316effd7b1
commit 4b3aa59b8b

@ -20,11 +20,11 @@ struct sway_input_device {
};
struct sway_input_manager {
struct wl_listener input_add;
struct wl_listener input_remove;
struct sway_server *server;
struct wl_list devices;
struct wl_list seats;
struct wl_listener new_input;
};
struct sway_input_manager *sway_input_manager_create(

@ -187,7 +187,7 @@ static void handle_device_destroy(struct wl_listener *listener, void *data) {
static void handle_new_input(struct wl_listener *listener, void *data) {
struct sway_input_manager *input =
wl_container_of(listener, input, input_add);
wl_container_of(listener, input, new_input);
struct wlr_input_device *device = data;
struct sway_input_device *input_device =
@ -271,8 +271,8 @@ struct sway_input_manager *sway_input_manager_create(
// create the default seat
input_manager_get_seat(input, default_seat);
input->input_add.notify = handle_new_input;
wl_signal_add(&server->backend->events.new_input, &input->input_add);
input->new_input.notify = handle_new_input;
wl_signal_add(&server->backend->events.new_input, &input->new_input);
return input;
}

Loading…
Cancel
Save