Skip to content

Commit

Permalink
Fix cursor not appearing when touching specific capacitive screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Will DeBerry committed Jan 23, 2018
1 parent 04d0a97 commit 199149a
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 199149a

Please sign in to comment.