5s timeout for StateSuspendPending

This commit is contained in:
Miles Alan 2020-07-11 09:52:05 -05:00
parent fe24fec53d
commit 383c52380f

View file

@ -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 (;;) {