diff options
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index 9fff5f48..2b4a99d4 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -62,7 +62,7 @@ char *input_device_get_identifier(struct wlr_input_device *device) { | |||
62 | int len = snprintf(NULL, 0, fmt, vendor, product, name) + 1; | 62 | int len = snprintf(NULL, 0, fmt, vendor, product, name) + 1; |
63 | char *identifier = malloc(len); | 63 | char *identifier = malloc(len); |
64 | if (!identifier) { | 64 | if (!identifier) { |
65 | wlr_log(WLR_ERROR, "Unable to allocate unique input device name"); | 65 | sway_log(SWAY_ERROR, "Unable to allocate unique input device name"); |
66 | return NULL; | 66 | return NULL; |
67 | } | 67 | } |
68 | 68 | ||
@@ -98,7 +98,7 @@ static bool input_has_seat_fallback_configuration(void) { | |||
98 | void input_manager_verify_fallback_seat(void) { | 98 | void input_manager_verify_fallback_seat(void) { |
99 | struct sway_seat *seat = NULL; | 99 | struct sway_seat *seat = NULL; |
100 | if (!input_has_seat_fallback_configuration()) { | 100 | if (!input_has_seat_fallback_configuration()) { |
101 | wlr_log(WLR_DEBUG, "no fallback seat config - creating default"); | 101 | sway_log(SWAY_DEBUG, "no fallback seat config - creating default"); |
102 | seat = input_manager_get_default_seat(); | 102 | seat = input_manager_get_default_seat(); |
103 | struct seat_config *sc = new_seat_config(seat->wlr_seat->name); | 103 | struct seat_config *sc = new_seat_config(seat->wlr_seat->name); |
104 | sc->fallback = true; | 104 | sc->fallback = true; |
@@ -124,11 +124,11 @@ static void input_manager_libinput_config_keyboard( | |||
124 | } | 124 | } |
125 | 125 | ||
126 | libinput_device = wlr_libinput_get_device_handle(wlr_device); | 126 | libinput_device = wlr_libinput_get_device_handle(wlr_device); |
127 | wlr_log(WLR_DEBUG, "input_manager_libinput_config_keyboard(%s)", | 127 | sway_log(SWAY_DEBUG, "input_manager_libinput_config_keyboard(%s)", |
128 | ic->identifier); | 128 | ic->identifier); |
129 | 129 | ||
130 | if (ic->send_events != INT_MIN) { | 130 | if (ic->send_events != INT_MIN) { |
131 | wlr_log(WLR_DEBUG, "libinput_config_keyboard(%s) send_events_set_mode(%d)", | 131 | sway_log(SWAY_DEBUG, "libinput_config_keyboard(%s) send_events_set_mode(%d)", |
132 | ic->identifier, ic->send_events); | 132 | ic->identifier, ic->send_events); |
133 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 133 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
134 | libinput_device, ic->send_events)); | 134 | libinput_device, ic->send_events)); |
@@ -148,7 +148,7 @@ static void input_manager_libinput_reset_keyboard( | |||
148 | 148 | ||
149 | uint32_t send_events = | 149 | uint32_t send_events = |
150 | libinput_device_config_send_events_get_default_mode(libinput_device); | 150 | libinput_device_config_send_events_get_default_mode(libinput_device); |
151 | wlr_log(WLR_DEBUG, "libinput_reset_keyboard(%s) send_events_set_mode(%d)", | 151 | sway_log(SWAY_DEBUG, "libinput_reset_keyboard(%s) send_events_set_mode(%d)", |
152 | input_device->identifier, send_events); | 152 | input_device->identifier, send_events); |
153 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 153 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
154 | libinput_device, send_events)); | 154 | libinput_device, send_events)); |
@@ -165,11 +165,11 @@ static void input_manager_libinput_config_touch( | |||
165 | } | 165 | } |
166 | 166 | ||
167 | libinput_device = wlr_libinput_get_device_handle(wlr_device); | 167 | libinput_device = wlr_libinput_get_device_handle(wlr_device); |
168 | wlr_log(WLR_DEBUG, "input_manager_libinput_config_touch(%s)", | 168 | sway_log(SWAY_DEBUG, "input_manager_libinput_config_touch(%s)", |
169 | ic->identifier); | 169 | ic->identifier); |
170 | 170 | ||
171 | if (ic->send_events != INT_MIN) { | 171 | if (ic->send_events != INT_MIN) { |
172 | wlr_log(WLR_DEBUG, "libinput_config_touch(%s) send_events_set_mode(%d)", | 172 | sway_log(SWAY_DEBUG, "libinput_config_touch(%s) send_events_set_mode(%d)", |
173 | ic->identifier, ic->send_events); | 173 | ic->identifier, ic->send_events); |
174 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 174 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
175 | libinput_device, ic->send_events)); | 175 | libinput_device, ic->send_events)); |
@@ -189,7 +189,7 @@ static void input_manager_libinput_reset_touch( | |||
189 | 189 | ||
190 | uint32_t send_events = | 190 | uint32_t send_events = |
191 | libinput_device_config_send_events_get_default_mode(libinput_device); | 191 | libinput_device_config_send_events_get_default_mode(libinput_device); |
192 | wlr_log(WLR_DEBUG, "libinput_reset_touch(%s) send_events_set_mode(%d)", | 192 | sway_log(SWAY_DEBUG, "libinput_reset_touch(%s) send_events_set_mode(%d)", |
193 | input_device->identifier, send_events); | 193 | input_device->identifier, send_events); |
194 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 194 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
195 | libinput_device, send_events)); | 195 | libinput_device, send_events)); |
@@ -206,30 +206,30 @@ static void input_manager_libinput_config_pointer( | |||
206 | } | 206 | } |
207 | 207 | ||
208 | libinput_device = wlr_libinput_get_device_handle(wlr_device); | 208 | libinput_device = wlr_libinput_get_device_handle(wlr_device); |
209 | wlr_log(WLR_DEBUG, "input_manager_libinput_config_pointer(%s)", | 209 | sway_log(SWAY_DEBUG, "input_manager_libinput_config_pointer(%s)", |
210 | ic->identifier); | 210 | ic->identifier); |
211 | 211 | ||
212 | if (ic->accel_profile != INT_MIN) { | 212 | if (ic->accel_profile != INT_MIN) { |
213 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) accel_set_profile(%d)", | 213 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) accel_set_profile(%d)", |
214 | ic->identifier, ic->accel_profile); | 214 | ic->identifier, ic->accel_profile); |
215 | log_libinput_config_status(libinput_device_config_accel_set_profile( | 215 | log_libinput_config_status(libinput_device_config_accel_set_profile( |
216 | libinput_device, ic->accel_profile)); | 216 | libinput_device, ic->accel_profile)); |
217 | } | 217 | } |
218 | if (ic->click_method != INT_MIN) { | 218 | if (ic->click_method != INT_MIN) { |
219 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) click_set_method(%d)", | 219 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) click_set_method(%d)", |
220 | ic->identifier, ic->click_method); | 220 | ic->identifier, ic->click_method); |
221 | log_libinput_config_status(libinput_device_config_click_set_method( | 221 | log_libinput_config_status(libinput_device_config_click_set_method( |
222 | libinput_device, ic->click_method)); | 222 | libinput_device, ic->click_method)); |
223 | } | 223 | } |
224 | if (ic->drag != INT_MIN) { | 224 | if (ic->drag != INT_MIN) { |
225 | wlr_log(WLR_DEBUG, | 225 | sway_log(SWAY_DEBUG, |
226 | "libinput_config_pointer(%s) tap_set_drag_enabled(%d)", | 226 | "libinput_config_pointer(%s) tap_set_drag_enabled(%d)", |
227 | ic->identifier, ic->drag); | 227 | ic->identifier, ic->drag); |
228 | log_libinput_config_status(libinput_device_config_tap_set_drag_enabled( | 228 | log_libinput_config_status(libinput_device_config_tap_set_drag_enabled( |
229 | libinput_device, ic->drag)); | 229 | libinput_device, ic->drag)); |
230 | } | 230 | } |
231 | if (ic->drag_lock != INT_MIN) { | 231 | if (ic->drag_lock != INT_MIN) { |
232 | wlr_log(WLR_DEBUG, | 232 | sway_log(SWAY_DEBUG, |
233 | "libinput_config_pointer(%s) tap_set_drag_lock_enabled(%d)", | 233 | "libinput_config_pointer(%s) tap_set_drag_lock_enabled(%d)", |
234 | ic->identifier, ic->drag_lock); | 234 | ic->identifier, ic->drag_lock); |
235 | log_libinput_config_status( | 235 | log_libinput_config_status( |
@@ -237,20 +237,20 @@ static void input_manager_libinput_config_pointer( | |||
237 | libinput_device, ic->drag_lock)); | 237 | libinput_device, ic->drag_lock)); |
238 | } | 238 | } |
239 | if (ic->dwt != INT_MIN) { | 239 | if (ic->dwt != INT_MIN) { |
240 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) dwt_set_enabled(%d)", | 240 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) dwt_set_enabled(%d)", |
241 | ic->identifier, ic->dwt); | 241 | ic->identifier, ic->dwt); |
242 | log_libinput_config_status(libinput_device_config_dwt_set_enabled( | 242 | log_libinput_config_status(libinput_device_config_dwt_set_enabled( |
243 | libinput_device, ic->dwt)); | 243 | libinput_device, ic->dwt)); |
244 | } | 244 | } |
245 | if (ic->left_handed != INT_MIN) { | 245 | if (ic->left_handed != INT_MIN) { |
246 | wlr_log(WLR_DEBUG, | 246 | sway_log(SWAY_DEBUG, |
247 | "libinput_config_pointer(%s) left_handed_set_enabled(%d)", | 247 | "libinput_config_pointer(%s) left_handed_set_enabled(%d)", |
248 | ic->identifier, ic->left_handed); | 248 | ic->identifier, ic->left_handed); |
249 | log_libinput_config_status(libinput_device_config_left_handed_set( | 249 | log_libinput_config_status(libinput_device_config_left_handed_set( |
250 | libinput_device, ic->left_handed)); | 250 | libinput_device, ic->left_handed)); |
251 | } | 251 | } |
252 | if (ic->middle_emulation != INT_MIN) { | 252 | if (ic->middle_emulation != INT_MIN) { |
253 | wlr_log(WLR_DEBUG, | 253 | sway_log(SWAY_DEBUG, |
254 | "libinput_config_pointer(%s) middle_emulation_set_enabled(%d)", | 254 | "libinput_config_pointer(%s) middle_emulation_set_enabled(%d)", |
255 | ic->identifier, ic->middle_emulation); | 255 | ic->identifier, ic->middle_emulation); |
256 | log_libinput_config_status( | 256 | log_libinput_config_status( |
@@ -258,7 +258,7 @@ static void input_manager_libinput_config_pointer( | |||
258 | libinput_device, ic->middle_emulation)); | 258 | libinput_device, ic->middle_emulation)); |
259 | } | 259 | } |
260 | if (ic->natural_scroll != INT_MIN) { | 260 | if (ic->natural_scroll != INT_MIN) { |
261 | wlr_log(WLR_DEBUG, | 261 | sway_log(SWAY_DEBUG, |
262 | "libinput_config_pointer(%s) natural_scroll_set_enabled(%d)", | 262 | "libinput_config_pointer(%s) natural_scroll_set_enabled(%d)", |
263 | ic->identifier, ic->natural_scroll); | 263 | ic->identifier, ic->natural_scroll); |
264 | log_libinput_config_status( | 264 | log_libinput_config_status( |
@@ -266,37 +266,37 @@ static void input_manager_libinput_config_pointer( | |||
266 | libinput_device, ic->natural_scroll)); | 266 | libinput_device, ic->natural_scroll)); |
267 | } | 267 | } |
268 | if (ic->pointer_accel != FLT_MIN) { | 268 | if (ic->pointer_accel != FLT_MIN) { |
269 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) accel_set_speed(%f)", | 269 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) accel_set_speed(%f)", |
270 | ic->identifier, ic->pointer_accel); | 270 | ic->identifier, ic->pointer_accel); |
271 | log_libinput_config_status(libinput_device_config_accel_set_speed( | 271 | log_libinput_config_status(libinput_device_config_accel_set_speed( |
272 | libinput_device, ic->pointer_accel)); | 272 | libinput_device, ic->pointer_accel)); |
273 | } | 273 | } |
274 | if (ic->scroll_button != INT_MIN) { | 274 | if (ic->scroll_button != INT_MIN) { |
275 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) scroll_set_button(%d)", | 275 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) scroll_set_button(%d)", |
276 | ic->identifier, ic->scroll_button); | 276 | ic->identifier, ic->scroll_button); |
277 | log_libinput_config_status(libinput_device_config_scroll_set_button( | 277 | log_libinput_config_status(libinput_device_config_scroll_set_button( |
278 | libinput_device, ic->scroll_button)); | 278 | libinput_device, ic->scroll_button)); |
279 | } | 279 | } |
280 | if (ic->scroll_method != INT_MIN) { | 280 | if (ic->scroll_method != INT_MIN) { |
281 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) scroll_set_method(%d)", | 281 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) scroll_set_method(%d)", |
282 | ic->identifier, ic->scroll_method); | 282 | ic->identifier, ic->scroll_method); |
283 | log_libinput_config_status(libinput_device_config_scroll_set_method( | 283 | log_libinput_config_status(libinput_device_config_scroll_set_method( |
284 | libinput_device, ic->scroll_method)); | 284 | libinput_device, ic->scroll_method)); |
285 | } | 285 | } |
286 | if (ic->send_events != INT_MIN) { | 286 | if (ic->send_events != INT_MIN) { |
287 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) send_events_set_mode(%d)", | 287 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) send_events_set_mode(%d)", |
288 | ic->identifier, ic->send_events); | 288 | ic->identifier, ic->send_events); |
289 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 289 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
290 | libinput_device, ic->send_events)); | 290 | libinput_device, ic->send_events)); |
291 | } | 291 | } |
292 | if (ic->tap != INT_MIN) { | 292 | if (ic->tap != INT_MIN) { |
293 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) tap_set_enabled(%d)", | 293 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) tap_set_enabled(%d)", |
294 | ic->identifier, ic->tap); | 294 | ic->identifier, ic->tap); |
295 | log_libinput_config_status(libinput_device_config_tap_set_enabled( | 295 | log_libinput_config_status(libinput_device_config_tap_set_enabled( |
296 | libinput_device, ic->tap)); | 296 | libinput_device, ic->tap)); |
297 | } | 297 | } |
298 | if (ic->tap_button_map != INT_MIN) { | 298 | if (ic->tap_button_map != INT_MIN) { |
299 | wlr_log(WLR_DEBUG, "libinput_config_pointer(%s) tap_set_button_map(%d)", | 299 | sway_log(SWAY_DEBUG, "libinput_config_pointer(%s) tap_set_button_map(%d)", |
300 | ic->identifier, ic->tap_button_map); | 300 | ic->identifier, ic->tap_button_map); |
301 | log_libinput_config_status(libinput_device_config_tap_set_button_map( | 301 | log_libinput_config_status(libinput_device_config_tap_set_button_map( |
302 | libinput_device, ic->tap_button_map)); | 302 | libinput_device, ic->tap_button_map)); |
@@ -316,21 +316,21 @@ static void input_manager_libinput_reset_pointer( | |||
316 | 316 | ||
317 | enum libinput_config_accel_profile accel_profile = | 317 | enum libinput_config_accel_profile accel_profile = |
318 | libinput_device_config_accel_get_default_profile(libinput_device); | 318 | libinput_device_config_accel_get_default_profile(libinput_device); |
319 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) accel_set_profile(%d)", | 319 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) accel_set_profile(%d)", |
320 | input_device->identifier, accel_profile); | 320 | input_device->identifier, accel_profile); |
321 | log_libinput_config_status(libinput_device_config_accel_set_profile( | 321 | log_libinput_config_status(libinput_device_config_accel_set_profile( |
322 | libinput_device, accel_profile)); | 322 | libinput_device, accel_profile)); |
323 | 323 | ||
324 | enum libinput_config_click_method click_method = | 324 | enum libinput_config_click_method click_method = |
325 | libinput_device_config_click_get_default_method(libinput_device); | 325 | libinput_device_config_click_get_default_method(libinput_device); |
326 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) click_set_method(%d)", | 326 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) click_set_method(%d)", |
327 | input_device->identifier, click_method); | 327 | input_device->identifier, click_method); |
328 | log_libinput_config_status(libinput_device_config_click_set_method( | 328 | log_libinput_config_status(libinput_device_config_click_set_method( |
329 | libinput_device, click_method)); | 329 | libinput_device, click_method)); |
330 | 330 | ||
331 | enum libinput_config_drag_state drag = | 331 | enum libinput_config_drag_state drag = |
332 | libinput_device_config_tap_get_default_drag_enabled(libinput_device); | 332 | libinput_device_config_tap_get_default_drag_enabled(libinput_device); |
333 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) tap_set_drag_enabled(%d)", | 333 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) tap_set_drag_enabled(%d)", |
334 | input_device->identifier, drag); | 334 | input_device->identifier, drag); |
335 | log_libinput_config_status(libinput_device_config_tap_set_drag_enabled( | 335 | log_libinput_config_status(libinput_device_config_tap_set_drag_enabled( |
336 | libinput_device, drag)); | 336 | libinput_device, drag)); |
@@ -338,7 +338,7 @@ static void input_manager_libinput_reset_pointer( | |||
338 | enum libinput_config_drag_lock_state drag_lock = | 338 | enum libinput_config_drag_lock_state drag_lock = |
339 | libinput_device_config_tap_get_default_drag_lock_enabled( | 339 | libinput_device_config_tap_get_default_drag_lock_enabled( |
340 | libinput_device); | 340 | libinput_device); |
341 | wlr_log(WLR_DEBUG, | 341 | sway_log(SWAY_DEBUG, |
342 | "libinput_reset_pointer(%s) tap_set_drag_lock_enabled(%d)", | 342 | "libinput_reset_pointer(%s) tap_set_drag_lock_enabled(%d)", |
343 | input_device->identifier, drag_lock); | 343 | input_device->identifier, drag_lock); |
344 | log_libinput_config_status( | 344 | log_libinput_config_status( |
@@ -347,14 +347,14 @@ static void input_manager_libinput_reset_pointer( | |||
347 | 347 | ||
348 | enum libinput_config_dwt_state dwt = | 348 | enum libinput_config_dwt_state dwt = |
349 | libinput_device_config_dwt_get_default_enabled(libinput_device); | 349 | libinput_device_config_dwt_get_default_enabled(libinput_device); |
350 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) dwt_set_enabled(%d)", | 350 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) dwt_set_enabled(%d)", |
351 | input_device->identifier, dwt); | 351 | input_device->identifier, dwt); |
352 | log_libinput_config_status(libinput_device_config_dwt_set_enabled( | 352 | log_libinput_config_status(libinput_device_config_dwt_set_enabled( |
353 | libinput_device, dwt)); | 353 | libinput_device, dwt)); |
354 | 354 | ||
355 | int left_handed = | 355 | int left_handed = |
356 | libinput_device_config_left_handed_get_default(libinput_device); | 356 | libinput_device_config_left_handed_get_default(libinput_device); |
357 | wlr_log(WLR_DEBUG, | 357 | sway_log(SWAY_DEBUG, |
358 | "libinput_reset_pointer(%s) left_handed_set_enabled(%d)", | 358 | "libinput_reset_pointer(%s) left_handed_set_enabled(%d)", |
359 | input_device->identifier, left_handed); | 359 | input_device->identifier, left_handed); |
360 | log_libinput_config_status(libinput_device_config_left_handed_set( | 360 | log_libinput_config_status(libinput_device_config_left_handed_set( |
@@ -363,7 +363,7 @@ static void input_manager_libinput_reset_pointer( | |||
363 | enum libinput_config_middle_emulation_state middle_emulation = | 363 | enum libinput_config_middle_emulation_state middle_emulation = |
364 | libinput_device_config_middle_emulation_get_default_enabled( | 364 | libinput_device_config_middle_emulation_get_default_enabled( |
365 | libinput_device); | 365 | libinput_device); |
366 | wlr_log(WLR_DEBUG, | 366 | sway_log(SWAY_DEBUG, |
367 | "libinput_reset_pointer(%s) middle_emulation_set_enabled(%d)", | 367 | "libinput_reset_pointer(%s) middle_emulation_set_enabled(%d)", |
368 | input_device->identifier, middle_emulation); | 368 | input_device->identifier, middle_emulation); |
369 | log_libinput_config_status( | 369 | log_libinput_config_status( |
@@ -373,7 +373,7 @@ static void input_manager_libinput_reset_pointer( | |||
373 | int natural_scroll = | 373 | int natural_scroll = |
374 | libinput_device_config_scroll_get_default_natural_scroll_enabled( | 374 | libinput_device_config_scroll_get_default_natural_scroll_enabled( |
375 | libinput_device); | 375 | libinput_device); |
376 | wlr_log(WLR_DEBUG, | 376 | sway_log(SWAY_DEBUG, |
377 | "libinput_reset_pointer(%s) natural_scroll_set_enabled(%d)", | 377 | "libinput_reset_pointer(%s) natural_scroll_set_enabled(%d)", |
378 | input_device->identifier, natural_scroll); | 378 | input_device->identifier, natural_scroll); |
379 | log_libinput_config_status( | 379 | log_libinput_config_status( |
@@ -382,42 +382,42 @@ static void input_manager_libinput_reset_pointer( | |||
382 | 382 | ||
383 | double pointer_accel = | 383 | double pointer_accel = |
384 | libinput_device_config_accel_get_default_speed(libinput_device); | 384 | libinput_device_config_accel_get_default_speed(libinput_device); |
385 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) accel_set_speed(%f)", | 385 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) accel_set_speed(%f)", |
386 | input_device->identifier, pointer_accel); | 386 | input_device->identifier, pointer_accel); |
387 | log_libinput_config_status(libinput_device_config_accel_set_speed( | 387 | log_libinput_config_status(libinput_device_config_accel_set_speed( |
388 | libinput_device, pointer_accel)); | 388 | libinput_device, pointer_accel)); |
389 | 389 | ||
390 | uint32_t scroll_button = | 390 | uint32_t scroll_button = |
391 | libinput_device_config_scroll_get_default_button(libinput_device); | 391 | libinput_device_config_scroll_get_default_button(libinput_device); |
392 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) scroll_set_button(%d)", | 392 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) scroll_set_button(%d)", |
393 | input_device->identifier, scroll_button); | 393 | input_device->identifier, scroll_button); |
394 | log_libinput_config_status(libinput_device_config_scroll_set_button( | 394 | log_libinput_config_status(libinput_device_config_scroll_set_button( |
395 | libinput_device, scroll_button)); | 395 | libinput_device, scroll_button)); |
396 | 396 | ||
397 | enum libinput_config_scroll_method scroll_method = | 397 | enum libinput_config_scroll_method scroll_method = |
398 | libinput_device_config_scroll_get_default_method(libinput_device); | 398 | libinput_device_config_scroll_get_default_method(libinput_device); |
399 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) scroll_set_method(%d)", | 399 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) scroll_set_method(%d)", |
400 | input_device->identifier, scroll_method); | 400 | input_device->identifier, scroll_method); |
401 | log_libinput_config_status(libinput_device_config_scroll_set_method( | 401 | log_libinput_config_status(libinput_device_config_scroll_set_method( |
402 | libinput_device, scroll_method)); | 402 | libinput_device, scroll_method)); |
403 | 403 | ||
404 | uint32_t send_events = | 404 | uint32_t send_events = |
405 | libinput_device_config_send_events_get_default_mode(libinput_device); | 405 | libinput_device_config_send_events_get_default_mode(libinput_device); |
406 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) send_events_set_mode(%d)", | 406 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) send_events_set_mode(%d)", |
407 | input_device->identifier, send_events); | 407 | input_device->identifier, send_events); |
408 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 408 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
409 | libinput_device, send_events)); | 409 | libinput_device, send_events)); |
410 | 410 | ||
411 | enum libinput_config_tap_state tap = | 411 | enum libinput_config_tap_state tap = |
412 | libinput_device_config_tap_get_default_enabled(libinput_device); | 412 | libinput_device_config_tap_get_default_enabled(libinput_device); |
413 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) tap_set_enabled(%d)", | 413 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) tap_set_enabled(%d)", |
414 | input_device->identifier, tap); | 414 | input_device->identifier, tap); |
415 | log_libinput_config_status(libinput_device_config_tap_set_enabled( | 415 | log_libinput_config_status(libinput_device_config_tap_set_enabled( |
416 | libinput_device, tap)); | 416 | libinput_device, tap)); |
417 | 417 | ||
418 | enum libinput_config_tap_button_map tap_button_map = | 418 | enum libinput_config_tap_button_map tap_button_map = |
419 | libinput_device_config_tap_get_button_map(libinput_device); | 419 | libinput_device_config_tap_get_button_map(libinput_device); |
420 | wlr_log(WLR_DEBUG, "libinput_reset_pointer(%s) tap_set_button_map(%d)", | 420 | sway_log(SWAY_DEBUG, "libinput_reset_pointer(%s) tap_set_button_map(%d)", |
421 | input_device->identifier, tap_button_map); | 421 | input_device->identifier, tap_button_map); |
422 | log_libinput_config_status(libinput_device_config_tap_set_button_map( | 422 | log_libinput_config_status(libinput_device_config_tap_set_button_map( |
423 | libinput_device, tap_button_map)); | 423 | libinput_device, tap_button_map)); |
@@ -432,7 +432,7 @@ static void handle_device_destroy(struct wl_listener *listener, void *data) { | |||
432 | return; | 432 | return; |
433 | } | 433 | } |
434 | 434 | ||
435 | wlr_log(WLR_DEBUG, "removing device: '%s'", | 435 | sway_log(SWAY_DEBUG, "removing device: '%s'", |
436 | input_device->identifier); | 436 | input_device->identifier); |
437 | 437 | ||
438 | struct sway_seat *seat = NULL; | 438 | struct sway_seat *seat = NULL; |
@@ -462,7 +462,7 @@ static void handle_new_input(struct wl_listener *listener, void *data) { | |||
462 | input_device->identifier = input_device_get_identifier(device); | 462 | input_device->identifier = input_device_get_identifier(device); |
463 | wl_list_insert(&input->devices, &input_device->link); | 463 | wl_list_insert(&input->devices, &input_device->link); |
464 | 464 | ||
465 | wlr_log(WLR_DEBUG, "adding device: '%s'", | 465 | sway_log(SWAY_DEBUG, "adding device: '%s'", |
466 | input_device->identifier); | 466 | input_device->identifier); |
467 | 467 | ||
468 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER || | 468 | if (input_device->wlr_device->type == WLR_INPUT_DEVICE_POINTER || |
@@ -504,7 +504,7 @@ static void handle_new_input(struct wl_listener *listener, void *data) { | |||
504 | } | 504 | } |
505 | 505 | ||
506 | if (!added) { | 506 | if (!added) { |
507 | wlr_log(WLR_DEBUG, | 507 | sway_log(SWAY_DEBUG, |
508 | "device '%s' is not configured on any seats", | 508 | "device '%s' is not configured on any seats", |
509 | input_device->identifier); | 509 | input_device->identifier); |
510 | } | 510 | } |
@@ -554,7 +554,7 @@ void handle_virtual_keyboard(struct wl_listener *listener, void *data) { | |||
554 | input_device->identifier = input_device_get_identifier(device); | 554 | input_device->identifier = input_device_get_identifier(device); |
555 | wl_list_insert(&input_manager->devices, &input_device->link); | 555 | wl_list_insert(&input_manager->devices, &input_device->link); |
556 | 556 | ||
557 | wlr_log(WLR_DEBUG, "adding virtual keyboard: '%s'", | 557 | sway_log(SWAY_DEBUG, "adding virtual keyboard: '%s'", |
558 | input_device->identifier); | 558 | input_device->identifier); |
559 | 559 | ||
560 | wl_signal_add(&device->events.destroy, &input_device->device_destroy); | 560 | wl_signal_add(&device->events.destroy, &input_device->device_destroy); |
@@ -660,7 +660,7 @@ void input_manager_reset_all_inputs() { | |||
660 | 660 | ||
661 | 661 | ||
662 | void input_manager_apply_seat_config(struct seat_config *seat_config) { | 662 | void input_manager_apply_seat_config(struct seat_config *seat_config) { |
663 | wlr_log(WLR_DEBUG, "applying seat config for seat %s", seat_config->name); | 663 | sway_log(SWAY_DEBUG, "applying seat config for seat %s", seat_config->name); |
664 | if (strcmp(seat_config->name, "*") == 0) { | 664 | if (strcmp(seat_config->name, "*") == 0) { |
665 | struct sway_seat *seat = NULL; | 665 | struct sway_seat *seat = NULL; |
666 | wl_list_for_each(seat, &server.input->seats, link) { | 666 | wl_list_for_each(seat, &server.input->seats, link) { |