summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {