diff --git a/Program.cs b/Program.cs index 26aa5cc..48a8c27 100644 --- a/Program.cs +++ b/Program.cs @@ -179,7 +179,7 @@ bool isActive() { void activate(int duration) { var sleepDisabled = NativeMethods.ES_CONTINUOUS | - NativeMethods.ES_DISPLAY_REQUIRED; + NativeMethods.ES_SYSTEM_REQUIRED; oldState = NativeMethods.SetThreadExecutionState(sleepDisabled); if (oldState == 0) { ShowError();