summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-03-17 18:09:17 +0100
committerxengineering <me@xengineering.eu>2023-03-17 18:09:17 +0100
commitb3535dcb638f73628d0dd2858427c3c563ce3d57 (patch)
tree83e42da1c2722872112bbe68a73514e9f37bd0a2
parentbb177c6e2c4f70165405034b0d3355affde3c859 (diff)
downloadphonelock-b3535dcb638f73628d0dd2858427c3c563ce3d57.tar
phonelock-b3535dcb638f73628d0dd2858427c3c563ce3d57.tar.zst
phonelock-b3535dcb638f73628d0dd2858427c3c563ce3d57.zip
Add delay to later demonstrate lock state
The first test will be to lock the session for a few seconds since this is easier than authentication.
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 1bbc885..94ee87a 100644
--- a/main.c
+++ b/main.c
@@ -1,5 +1,6 @@
+#include <unistd.h>
#include <stdio.h>
#include <wayland-client.h>
@@ -13,6 +14,8 @@ int main(void)
}
fprintf(stderr, "Connection established!\n");
+ sleep(2);
+
wl_display_disconnect(display);
return 0;
}