diff options
-rw-r--r-- | include/sway/input/input-manager.h | 4 | ||||
-rw-r--r-- | sway/input/input-manager.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index a76c3880..eab7dc90 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h | |||
@@ -20,11 +20,11 @@ struct sway_input_device { | |||
20 | }; | 20 | }; |
21 | 21 | ||
22 | struct sway_input_manager { | 22 | struct sway_input_manager { |
23 | struct wl_listener input_add; | ||
24 | struct wl_listener input_remove; | ||
25 | struct sway_server *server; | 23 | struct sway_server *server; |
26 | struct wl_list devices; | 24 | struct wl_list devices; |
27 | struct wl_list seats; | 25 | struct wl_list seats; |
26 | |||
27 | struct wl_listener new_input; | ||
28 | }; | 28 | }; |
29 | 29 | ||
30 | struct sway_input_manager *sway_input_manager_create( | 30 | struct sway_input_manager *sway_input_manager_create( |
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index e6708bad..27c2c72e 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -187,7 +187,7 @@ static void handle_device_destroy(struct wl_listener *listener, void *data) { | |||
187 | 187 | ||
188 | static void handle_new_input(struct wl_listener *listener, void *data) { | 188 | static void handle_new_input(struct wl_listener *listener, void *data) { |
189 | struct sway_input_manager *input = | 189 | struct sway_input_manager *input = |
190 | wl_container_of(listener, input, input_add); | 190 | wl_container_of(listener, input, new_input); |
191 | struct wlr_input_device *device = data; | 191 | struct wlr_input_device *device = data; |
192 | 192 | ||
193 | struct sway_input_device *input_device = | 193 | struct sway_input_device *input_device = |
@@ -271,8 +271,8 @@ struct sway_input_manager *sway_input_manager_create( | |||
271 | // create the default seat | 271 | // create the default seat |
272 | input_manager_get_seat(input, default_seat); | 272 | input_manager_get_seat(input, default_seat); |
273 | 273 | ||
274 | input->input_add.notify = handle_new_input; | 274 | input->new_input.notify = handle_new_input; |
275 | wl_signal_add(&server->backend->events.new_input, &input->input_add); | 275 | wl_signal_add(&server->backend->events.new_input, &input->new_input); |
276 | 276 | ||
277 | return input; | 277 | return input; |
278 | } | 278 | } |