summaryrefslogtreecommitdiff
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-07-14 13:58:58 +0100
commit84d7e796a2753a654bb1f26905f2bebb3f6d0ff5 (patch)
tree7cf9dde44069d1dbfab5eb7a92df61b415d59675
parent099d42c02fcabd63d79862839799381dce32f182 (diff)
comp wl - blanking fix saver timeout if 0 - dont set it as its off at 0
-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