backlight - update timer on power plug/unplug

this ensures a different timeout can be applied if you plug or unplug
power.
This commit is contained in:
Carsten Haitzler 2019-09-21 23:04:09 +01:00
parent 2747af8e07
commit 2c91a2c24d
1 changed files with 2 additions and 0 deletions

View File

@ -299,6 +299,8 @@ _e_screensaver_suspend_cb(void *data EINA_UNUSED)
static Eina_Bool
_e_screensaver_handler_powersave_cb(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED)
{
_e_screensaver_timeout = -1;
e_screensaver_update();
if ((e_config->screensaver_suspend) && (_e_screensaver_on))
{
if (_e_screensaver_suspend_timer)