mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
improve screen saver
This commit is contained in:
parent
d6525ef78f
commit
dad72bbea4
@ -2,6 +2,7 @@
|
||||
|
||||
2021/05/19
|
||||
* 增加宏NATIVE\_WINDOW\_NOT\_RESIZABLE,用于禁止用户调整desktop应用程序的窗口大小。
|
||||
* 修复设置屏保时间为0时候不能马上退出屏保的问题(感谢智明提供补丁)
|
||||
|
||||
2021/05/18
|
||||
* 完善image事件处理和测试。
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user