diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-16 13:16:58 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-16 13:16:58 -0500 |
commit | b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117 (patch) | |
tree | e8cea5cfeea200767111bf5de4f3355aec41169c /sway/input/seat.c | |
parent | strip whitespace for device id (diff) | |
download | sway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.tar.gz sway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.tar.zst sway-b0ed1ad28d8c87a9ca0e5eacb1e7b840ed924117.zip |
device add/remove logging
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 | ||