opt: fix format
This commit is contained in:
@@ -1172,7 +1172,7 @@ void parse_config_line(Config *config, const char *line) {
|
|||||||
} else if (strcmp(key, "scroll_method") == 0) {
|
} else if (strcmp(key, "scroll_method") == 0) {
|
||||||
config->scroll_method = atoi(value);
|
config->scroll_method = atoi(value);
|
||||||
} else if (strcmp(key, "scroll_button") == 0) {
|
} else if (strcmp(key, "scroll_button") == 0) {
|
||||||
config->scroll_button = atoi(value);
|
config->scroll_button = atoi(value);
|
||||||
} else if (strcmp(key, "click_method") == 0) {
|
} else if (strcmp(key, "click_method") == 0) {
|
||||||
config->click_method = atoi(value);
|
config->click_method = atoi(value);
|
||||||
} else if (strcmp(key, "send_events_mode") == 0) {
|
} else if (strcmp(key, "send_events_mode") == 0) {
|
||||||
|
|||||||
@@ -3941,8 +3941,8 @@ void createpointer(struct wlr_pointer *pointer) {
|
|||||||
LIBINPUT_CONFIG_SCROLL_NO_SCROLL)
|
LIBINPUT_CONFIG_SCROLL_NO_SCROLL)
|
||||||
libinput_device_config_scroll_set_method(device, scroll_method);
|
libinput_device_config_scroll_set_method(device, scroll_method);
|
||||||
if (libinput_device_config_scroll_get_methods(device) ==
|
if (libinput_device_config_scroll_get_methods(device) ==
|
||||||
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN)
|
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN)
|
||||||
libinput_device_config_scroll_set_button(device, scroll_button);
|
libinput_device_config_scroll_set_button(device, scroll_button);
|
||||||
|
|
||||||
if (libinput_device_config_click_get_methods(device) !=
|
if (libinput_device_config_click_get_methods(device) !=
|
||||||
LIBINPUT_CONFIG_CLICK_METHOD_NONE)
|
LIBINPUT_CONFIG_CLICK_METHOD_NONE)
|
||||||
|
|||||||
Reference in New Issue
Block a user