summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-18 13:27:18 +0100
committerSimon Rettberg2019-11-18 13:27:18 +0100
commit4df263caca0827ecfecdfa3b7ae23ded8d3f6f36 (patch)
treefe115b1e9af41de448fd62ef298e89a2c0b7fc8f /src
parentrpc: Account for wall clock changes (diff)
downloadidle-daemon-4df263caca0827ecfecdfa3b7ae23ded8d3f6f36.tar.gz
idle-daemon-4df263caca0827ecfecdfa3b7ae23ded8d3f6f36.tar.xz
idle-daemon-4df263caca0827ecfecdfa3b7ae23ded8d3f6f36.zip
Try to wake up screen when showing X11 warning
Diffstat (limited to 'src')
-rw-r--r--src/warn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/warn.c b/src/warn.c
index b3f6460..594577c 100644
--- a/src/warn.c
+++ b/src/warn.c
@@ -1,5 +1,6 @@
#include "warn.h"
#include "util.h"
+#include "x11util.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -88,6 +89,8 @@ void warn_showCustomWarning( const struct user *usr, const char *title, const ch
if ( usr->xauth[0] != '\0' && usr->xauth[0] != '-' ) {
setenv( "XAUTHORITY", usr->xauth, 1 );
}
+ // Maybe wake up screen
+ setScreenDpms( NULL, usr->display, SCREEN_ON );
run( false, "notify-send", "-t", "15000", title, body, (char*)NULL );
}
} else {