From 199149a56eecde0d50fb97883da2f78666de08cd Mon Sep 17 00:00:00 2001 From: Will DeBerry Date: Tue, 23 Jan 2018 16:27:24 -0500 Subject: [PATCH] Fix cursor not appearing when touching specific capacitive screens --- src/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index ca025af..3f1e05a 100644 --- a/src/event.c +++ b/src/event.c @@ -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); } @@ -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);