Fix bug where on booting end position x/y = 0/0 causing improper LR gesture
This commit is contained in:
@@ -169,6 +169,7 @@ touchup(struct libinput_event *e)
|
||||
void
|
||||
run()
|
||||
{
|
||||
int i;
|
||||
struct libinput *li;
|
||||
struct libinput_event *event;
|
||||
struct libinput_event_touch *tevent;
|
||||
@@ -191,6 +192,14 @@ run()
|
||||
die("Couldn't set mode to capture events\n");
|
||||
}
|
||||
|
||||
// E.g. initially invalidate every slot
|
||||
for (i = 0; i < MAXSLOTS; i++) {
|
||||
xend[i] = INVALID;
|
||||
yend[i] = INVALID;
|
||||
xstart[i] = INVALID;
|
||||
ystart[i] = INVALID;
|
||||
}
|
||||
|
||||
FD_ZERO(&fdset);
|
||||
FD_SET(libinput_get_fd(li), &fdset);
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user