mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-05 05:18:32 +02:00
evdev: merge two conditions into one with a sub condition
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6f1c8cda85
commit
a5c7de04c4
1 changed files with 6 additions and 6 deletions
12
src/evdev.c
12
src/evdev.c
|
|
@ -151,13 +151,13 @@ evdev_pointer_notify_button(struct evdev_device *device,
|
||||||
(state == LIBINPUT_BUTTON_STATE_RELEASED && down_count == 0)) {
|
(state == LIBINPUT_BUTTON_STATE_RELEASED && down_count == 0)) {
|
||||||
pointer_notify_button(&device->base, time, button, state);
|
pointer_notify_button(&device->base, time, button, state);
|
||||||
|
|
||||||
if (state == LIBINPUT_BUTTON_STATE_RELEASED &&
|
if (state == LIBINPUT_BUTTON_STATE_RELEASED) {
|
||||||
device->left_handed.change_to_enabled)
|
if (device->left_handed.change_to_enabled)
|
||||||
device->left_handed.change_to_enabled(device);
|
device->left_handed.change_to_enabled(device);
|
||||||
|
|
||||||
if (state == LIBINPUT_BUTTON_STATE_RELEASED &&
|
if (device->scroll.change_scroll_method)
|
||||||
device->scroll.change_scroll_method)
|
device->scroll.change_scroll_method(device);
|
||||||
device->scroll.change_scroll_method(device);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue