diff options
-rw-r--r-- | src/warn.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 { |