improve window manager

This commit is contained in:
lixianjing 2020-06-27 16:09:43 +08:00
parent c0366be403
commit fa712921b5
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,7 @@
* 2020/06/27
* 完善font cache感谢智明提供补丁
* 窗口切换到前台时将其为窗口管理的target/key\_arget。
* 2020/06/26
* edit 支持 date/time/time\_full 输入类型。

View File

@ -592,6 +592,9 @@ ret_t window_manager_dispatch_window_event(widget_t* window, event_type_t type)
if (type == EVT_WINDOW_OPEN) {
window_manager_dispatch_top_window_changed(window->parent);
} else if (type == EVT_WINDOW_TO_FOREGROUND) {
window->parent->target = window;
window->parent->key_target = window;
}
return widget_dispatch(window->parent, (event_t*)&(evt));