Optimize the code based on the suggestions

This commit is contained in:
SnowNF 2024-03-20 11:31:42 +08:00 committed by Johan Malm
parent bd4d92bad8
commit fb921ab431
4 changed files with 22 additions and 8 deletions

View file

@ -30,8 +30,8 @@ struct libinput_category {
int dwt; /* -1 or libinput_config_dwt_state */
int click_method; /* -1 or libinput_config_click_method */
int send_events_mode; /* -1 or libinput_config_send_events_mode */
bool no_calibration_matrix; /* false if have calibration matrix */
float calibration_matrix[6]; /* calibration matrix */
bool have_calibration_matrix;
float calibration_matrix[6];
};
enum lab_libinput_device_type get_device_type(const char *s);