mirror of
https://github.com/labwc/labwc.git
synced 2026-03-05 01:40:24 -05:00
Optimize the code based on the suggestions
This commit is contained in:
parent
bd4d92bad8
commit
fb921ab431
4 changed files with 22 additions and 8 deletions
|
|
@ -238,8 +238,9 @@ configure_libinput(struct wlr_input_device *wlr_input_device)
|
|||
libinput_device_config_send_events_set_mode(libinput_dev, dc->send_events_mode);
|
||||
}
|
||||
|
||||
/* Non-zero if the device can be calibrated, zero otherwise. */
|
||||
if (libinput_device_config_calibration_has_matrix(libinput_dev) == 0
|
||||
|| dc->no_calibration_matrix) {
|
||||
|| !dc->have_calibration_matrix) {
|
||||
wlr_log(WLR_INFO, "calibration matrix not configured");
|
||||
} else {
|
||||
wlr_log(WLR_INFO, "calibration matrix configured");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue