Fix bug where on booting end position x/y = 0/0 causing improper LR gesture

master
Miles Alan 5 years ago
parent becf4f259b
commit 877beea273
  1. 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…
Cancel
Save