aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-16 13:16:58 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-16 13:16:58 -0500
commitb0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117 (patch)
treee8cea5cfeea200767111bf5de4f3355aec41169c /sway/input/input-manager.c
parentstrip whitespace for device id (diff)
downloadsway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.tar.gz
sway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.tar.zst
sway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.zip
device add/remove logging
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c6
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);