mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
improve window manager
This commit is contained in:
parent
c0366be403
commit
fa712921b5
@ -2,6 +2,7 @@
|
||||
|
||||
* 2020/06/27
|
||||
* 完善font cache(感谢智明提供补丁)。
|
||||
* 窗口切换到前台时,将其为窗口管理的target/key\_arget。
|
||||
|
||||
* 2020/06/26
|
||||
* edit 支持 date/time/time\_full 输入类型。
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user