mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
gestures: rename int filter_motion to bool ignore_motion
Use a bool instead of an int and also rename the variable to avoid ambiguity with tp_filter_motion(). Signed-off-by: José Expósito <jose.exposito89@gmail.com>
This commit is contained in:
parent
b64a60a633
commit
82da751726
1 changed files with 4 additions and 4 deletions
|
|
@ -1855,7 +1855,7 @@ tp_post_process_state(struct tp_dispatch *tp, uint64_t time)
|
|||
static void
|
||||
tp_post_events(struct tp_dispatch *tp, uint64_t time)
|
||||
{
|
||||
int filter_motion = 0;
|
||||
bool ignore_motion = false;
|
||||
|
||||
/* Only post (top) button events while suspended */
|
||||
if (tp->device->is_suspended) {
|
||||
|
|
@ -1863,10 +1863,10 @@ tp_post_events(struct tp_dispatch *tp, uint64_t time)
|
|||
return;
|
||||
}
|
||||
|
||||
filter_motion |= tp_tap_handle_state(tp, time);
|
||||
filter_motion |= tp_post_button_events(tp, time);
|
||||
ignore_motion |= tp_tap_handle_state(tp, time);
|
||||
ignore_motion |= tp_post_button_events(tp, time);
|
||||
|
||||
if (filter_motion ||
|
||||
if (ignore_motion ||
|
||||
tp->palm.trackpoint_active ||
|
||||
tp->dwt.keyboard_active) {
|
||||
tp_edge_scroll_stop_events(tp, time);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue