improve screen saver

This commit is contained in:
lixianjing 2021-05-19 18:16:00 +08:00
parent d6525ef78f
commit dad72bbea4
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,7 @@
2021/05/19
* 增加宏NATIVE\_WINDOW\_NOT\_RESIZABLE用于禁止用户调整desktop应用程序的窗口大小。
* 修复设置屏保时间为0时候不能马上退出屏保的问题感谢智明提供补丁
2021/05/18
* 完善image事件处理和测试。

View File

@ -79,6 +79,11 @@ static ret_t window_manager_start_or_reset_screen_saver_timer(window_manager_def
} else {
timer_modify(wm->screen_saver_timer_id, wm->screen_saver_time);
}
} else {
if (wm->screen_saver_timer_id != TK_INVALID_ID) {
timer_remove(wm->screen_saver_timer_id);
wm->screen_saver_timer_id = TK_INVALID_ID;
}
}
return RET_OK;