Skip to content

Commit

Permalink
Merge pull request #29 from GetWellNetwork/master
Browse files Browse the repository at this point in the history
Fix cursor not appearing when touching specific capacitive screens
  • Loading branch information
Airblader authored Jan 24, 2018
2 parents 04d0a97 + 199149a commit ead5166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ static void event_init_x_loop(void) {

static void event_init_timer(void) {
idle_watcher = calloc(sizeof(struct ev_timer), 1);
ev_timer_init(idle_watcher, idle_cb, 0, config.timeout);
ev_timer_init(idle_watcher, idle_cb, config.timeout, config.timeout);
ev_timer_start(loop, idle_watcher);
}

Expand Down Expand Up @@ -101,6 +101,7 @@ static void event_select_xi(void) {
memset(mask, 0, sizeof(mask));
XISetMask(mask, XI_RawMotion);
XISetMask(mask, XI_RawButtonPress);
XISetMask(mask, XI_RawTouchUpdate);

masks[0].deviceid = XIAllMasterDevices;
masks[0].mask_len = sizeof(mask);
Expand Down

0 comments on commit ead5166

Please sign in to comment.