summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-06-30 11:39:14 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-06-30 12:14:23 +0000
commit4fa3ca249b435c5a79ded0f4173fdb06418b6188 (patch)
tree78ccdae1c483811c5b7272f4f4f240789e0128f1 /src
parentbc5f4e56355d58af97736daad25cd11054fe65ef (diff)
comp wl - blanking fix saver timeout if 0 - dont set it as its off at 0
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_comp_wl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 17dd6c738..67f5f591e 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -3806,6 +3806,8 @@ _e_comp_wl_screensaver_off()
3806E_API void 3806E_API void
3807e_comp_wl_notidle(void) 3807e_comp_wl_notidle(void)
3808{ 3808{
3809 int timeout;
3810
3809 if (saver_on) 3811 if (saver_on)
3810 { 3812 {
3811 saver_on = EINA_FALSE; 3813 saver_on = EINA_FALSE;
@@ -3814,9 +3816,10 @@ e_comp_wl_notidle(void)
3814 (0.3, _e_comp_wl_screensaver_eval_cb, NULL); 3816 (0.3, _e_comp_wl_screensaver_eval_cb, NULL);
3815 } 3817 }
3816 E_FREE_FUNC(screensaver_idle_timer, ecore_timer_del); 3818 E_FREE_FUNC(screensaver_idle_timer, ecore_timer_del);
3817 screensaver_idle_timer = ecore_timer_add 3819 timeout = e_screensaver_timeout_get(EINA_TRUE);
3818 (e_screensaver_timeout_get(EINA_TRUE), 3820 if (timeout > 0)
3819 _e_comp_wl_screensaver_idle_cb, NULL); 3821 screensaver_idle_timer = ecore_timer_add
3822 (timeout, _e_comp_wl_screensaver_idle_cb, NULL);
3820} 3823}
3821 3824
3822E_API void 3825E_API void