From 4df263caca0827ecfecdfa3b7ae23ded8d3f6f36 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Nov 2019 13:27:18 +0100 Subject: Try to wake up screen when showing X11 warning --- src/warn.c | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include @@ -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 { -- cgit v1.2.3-55-g7522