5s timeout for StateSuspendPending

master
Miles Alan 4 years ago
parent fe24fec53d
commit 383c52380f
  1. 4
      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 (;;) {

Loading…
Cancel
Save