diff options
-rw-r--r-- | sway/input/input-manager.c | 6 | ||||
-rw-r--r-- | sway/input/seat.c | 7 |
2 files changed, 12 insertions, 1 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); |
diff --git a/sway/input/seat.c b/sway/input/seat.c index 907c610a..1e62efa1 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -125,6 +125,9 @@ void sway_seat_add_device(struct sway_seat *seat, | |||
125 | return; | 125 | return; |
126 | } | 126 | } |
127 | 127 | ||
128 | sway_log(L_DEBUG, "adding device %s to seat %s", | ||
129 | input_device->identifier, seat->wlr_seat->name); | ||
130 | |||
128 | seat_device->sway_seat = seat; | 131 | seat_device->sway_seat = seat; |
129 | seat_device->input_device = input_device; | 132 | seat_device->input_device = input_device; |
130 | wl_list_insert(&seat->devices, &seat_device->link); | 133 | wl_list_insert(&seat->devices, &seat_device->link); |
@@ -134,7 +137,6 @@ void sway_seat_add_device(struct sway_seat *seat, | |||
134 | 137 | ||
135 | void sway_seat_remove_device(struct sway_seat *seat, | 138 | void sway_seat_remove_device(struct sway_seat *seat, |
136 | struct sway_input_device *input_device) { | 139 | struct sway_input_device *input_device) { |
137 | sway_log(L_DEBUG, "input remove: %s", input_device->identifier); | ||
138 | struct sway_seat_device *seat_device = | 140 | struct sway_seat_device *seat_device = |
139 | sway_seat_get_device(seat, input_device); | 141 | sway_seat_get_device(seat, input_device); |
140 | 142 | ||
@@ -142,6 +144,9 @@ void sway_seat_remove_device(struct sway_seat *seat, | |||
142 | return; | 144 | return; |
143 | } | 145 | } |
144 | 146 | ||
147 | sway_log(L_DEBUG, "removing device %s from seat %s", | ||
148 | input_device->identifier, seat->wlr_seat->name); | ||
149 | |||
145 | seat_device_destroy(seat_device); | 150 | seat_device_destroy(seat_device); |
146 | } | 151 | } |
147 | 152 | ||