diff options
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index e4558366..34766ee6 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -120,6 +120,9 @@ static void input_add_notify(struct wl_listener *listener, void *data) { | |||
120 | input_device->identifier = get_device_identifier(device); | 120 | input_device->identifier = get_device_identifier(device); |
121 | wl_list_insert(&input->devices, &input_device->link); | 121 | wl_list_insert(&input->devices, &input_device->link); |
122 | 122 | ||
123 | sway_log(L_DEBUG, "adding device: '%s'", | ||
124 | input_device->identifier); | ||
125 | |||
123 | // find config | 126 | // find config |
124 | for (int i = 0; i < config->input_configs->length; ++i) { | 127 | for (int i = 0; i < config->input_configs->length; ++i) { |
125 | struct input_config *input_config = config->input_configs->items[i]; | 128 | struct input_config *input_config = config->input_configs->items[i]; |
@@ -157,6 +160,9 @@ static void input_remove_notify(struct wl_listener *listener, void *data) { | |||
157 | return; | 160 | return; |
158 | } | 161 | } |
159 | 162 | ||
163 | sway_log(L_DEBUG, "removing device: '%s'", | ||
164 | input_device->identifier); | ||
165 | |||
160 | struct sway_seat *seat = NULL; | 166 | struct sway_seat *seat = NULL; |
161 | wl_list_for_each(seat, &input->seats, link) { | 167 | wl_list_for_each(seat, &input->seats, link) { |
162 | sway_seat_remove_device(seat, input_device); | 168 | sway_seat_remove_device(seat, input_device); |