mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-06 13:18:31 +02:00
Set up inhibit_screensaver config option to disable the feature
This commit is contained in:
@@ -198,7 +198,8 @@ static void game_mode_context_enter(GameModeContext *self)
|
||||
}
|
||||
|
||||
/* Inhibit the screensaver */
|
||||
game_mode_inhibit_screensaver(true);
|
||||
if (config_get_inhibit_screensaver(self->config))
|
||||
game_mode_inhibit_screensaver(true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -213,7 +214,8 @@ static void game_mode_context_leave(GameModeContext *self)
|
||||
sd_notifyf(0, "STATUS=%sGameMode is currently deactivated.%s\n", "\x1B[1;36m", "\x1B[0m");
|
||||
|
||||
/* UnInhibit the screensaver */
|
||||
game_mode_inhibit_screensaver(false);
|
||||
if (config_get_inhibit_screensaver(self->config))
|
||||
game_mode_inhibit_screensaver(false);
|
||||
|
||||
/* Reset the governer state back to initial */
|
||||
if (self->initial_cpu_mode[0] != '\0') {
|
||||
|
Reference in New Issue
Block a user