diff options
author | Simon Rettberg | 2019-11-18 13:27:18 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-11-18 13:27:18 +0100 |
commit | 4df263caca0827ecfecdfa3b7ae23ded8d3f6f36 (patch) | |
tree | fe115b1e9af41de448fd62ef298e89a2c0b7fc8f /src | |
parent | rpc: Account for wall clock changes (diff) | |
download | idle-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.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 { |