From 383c52380f35664f85697e6c08f090aab3c196a8 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 11 Jul 2020 09:52:05 -0500 Subject: [PATCH] 5s timeout for StateSuspendPending --- programs/sxmo_screenlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/sxmo_screenlock.c b/programs/sxmo_screenlock.c index 3fbc98f..3c31c71 100644 --- a/programs/sxmo_screenlock.c +++ b/programs/sxmo_screenlock.c @@ -14,7 +14,7 @@ enum State { StateNoInput, // Screen on / input lock StateNoInputNoScreen, // Screen off / input lock StateSuspend, // Deep sleep - StateSuspendPending, // Suspend 'woken up', must leave state in <10s, or kicks to StateSuspend + StateSuspendPending, // Suspend 'woken up', must leave state in <5s, or kicks to StateSuspend StateDead // Exit the appliation }; enum Color { @@ -163,7 +163,7 @@ readinputloop(Display *dpy, int screen) { fd_set fdset; int xfd; int selectresult; - struct timeval xeventtimeout = {10, 0}; + struct timeval xeventtimeout = {5, 0}; xfd = ConnectionNumber(dpy); for (;;) {