Skip to content

Commit

Permalink
Try to fix a warning while keeping touch input working
Browse files Browse the repository at this point in the history
  • Loading branch information
crudelios committed Jul 26, 2023
1 parent 32f68bc commit 117dce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/touch.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static int start_delayed(const touch *t)

const touch *touch_get_earliest(void)
{
time_millis timestamp = -1;
time_millis timestamp = time_get_millis() + 1;
int touch_index = MAX_ACTIVE_TOUCHES;
for (int i = 0; i < MAX_ACTIVE_TOUCHES; ++i) {
if (data.finger[i].in_use && !start_delayed(&data.finger[i]) && data.finger[i].start_time < timestamp) {
Expand Down

0 comments on commit 117dce2

Please sign in to comment.