mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
device add/remove logging
This commit is contained in:
parent
24e2406429
commit
b0ed1ad28d
2 changed files with 12 additions and 1 deletions
|
|
@ -120,6 +120,9 @@ static void input_add_notify(struct wl_listener *listener, void *data) {
|
|||
input_device->identifier = get_device_identifier(device);
|
||||
wl_list_insert(&input->devices, &input_device->link);
|
||||
|
||||
sway_log(L_DEBUG, "adding device: '%s'",
|
||||
input_device->identifier);
|
||||
|
||||
// find config
|
||||
for (int i = 0; i < config->input_configs->length; ++i) {
|
||||
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) {
|
|||
return;
|
||||
}
|
||||
|
||||
sway_log(L_DEBUG, "removing device: '%s'",
|
||||
input_device->identifier);
|
||||
|
||||
struct sway_seat *seat = NULL;
|
||||
wl_list_for_each(seat, &input->seats, link) {
|
||||
sway_seat_remove_device(seat, input_device);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue