opt: fix format

This commit is contained in:
DreamMaoMao 2025-07-04 08:50:59 +08:00
parent 64b83d907e
commit 5a8d666101
2 changed files with 3 additions and 3 deletions

View file

@ -1172,7 +1172,7 @@ void parse_config_line(Config *config, const char *line) {
} else if (strcmp(key, "scroll_method") == 0) {
config->scroll_method = atoi(value);
} else if (strcmp(key, "scroll_button") == 0) {
config->scroll_button = atoi(value);
config->scroll_button = atoi(value);
} else if (strcmp(key, "click_method") == 0) {
config->click_method = atoi(value);
} else if (strcmp(key, "send_events_mode") == 0) {

View file

@ -3941,8 +3941,8 @@ void createpointer(struct wlr_pointer *pointer) {
LIBINPUT_CONFIG_SCROLL_NO_SCROLL)
libinput_device_config_scroll_set_method(device, scroll_method);
if (libinput_device_config_scroll_get_methods(device) ==
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN)
libinput_device_config_scroll_set_button(device, scroll_button);
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN)
libinput_device_config_scroll_set_button(device, scroll_button);
if (libinput_device_config_click_get_methods(device) !=
LIBINPUT_CONFIG_CLICK_METHOD_NONE)