diff options
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r-- | sway/input/input-manager.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c index a2a1e274..195acc6f 100644 --- a/sway/input/input-manager.c +++ b/sway/input/input-manager.c | |||
@@ -281,6 +281,13 @@ static void input_manager_libinput_config_touch( | |||
281 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 281 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
282 | libinput_device, ic->send_events)); | 282 | libinput_device, ic->send_events)); |
283 | } | 283 | } |
284 | float *m = ic->calibration_matrix.matrix; | ||
285 | if (ic->calibration_matrix.configured) { | ||
286 | sway_log(SWAY_DEBUG, "libinput_config_touch(%s) calibration_set_matrix(%f %f %f %f %f %f)", | ||
287 | ic->identifier, m[0], m[1], m[2], m[3], m[4], m[5]); | ||
288 | log_libinput_config_status(libinput_device_config_calibration_set_matrix( | ||
289 | libinput_device, ic->calibration_matrix.matrix)); | ||
290 | } | ||
284 | } | 291 | } |
285 | 292 | ||
286 | static void input_manager_libinput_reset_touch( | 293 | static void input_manager_libinput_reset_touch( |
@@ -300,6 +307,12 @@ static void input_manager_libinput_reset_touch( | |||
300 | input_device->identifier, send_events); | 307 | input_device->identifier, send_events); |
301 | log_libinput_config_status(libinput_device_config_send_events_set_mode( | 308 | log_libinput_config_status(libinput_device_config_send_events_set_mode( |
302 | libinput_device, send_events)); | 309 | libinput_device, send_events)); |
310 | float m[6]; | ||
311 | libinput_device_config_calibration_get_default_matrix(libinput_device, m); | ||
312 | sway_log(SWAY_DEBUG, "libinput_reset_touch(%s) calibration_set_matrix(%f %f %f %f %f %f)", | ||
313 | input_device->identifier, m[0], m[1], m[2], m[3], m[4], m[5]); | ||
314 | log_libinput_config_status(libinput_device_config_calibration_set_matrix( | ||
315 | libinput_device, m)); | ||
303 | } | 316 | } |
304 | 317 | ||
305 | static void input_manager_libinput_config_pointer( | 318 | static void input_manager_libinput_config_pointer( |