Fix bug where on booting end position x/y = 0/0 causing improper LR gesture
This commit is contained in:
parent
becf4f259b
commit
877beea273
1 changed files with 9 additions and 0 deletions
9
lisgd.c
9
lisgd.c
|
@ -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 (;;) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue