mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve widget_get_window
This commit is contained in:
parent
271768e0ee
commit
efc5763d94
@ -1488,10 +1488,6 @@ widget_t* widget_get_window(widget_t* widget) {
|
||||
widget_t* iter = widget;
|
||||
return_value_if_fail(widget != NULL, NULL);
|
||||
|
||||
if (widget_is_designing_window(widget) && !widget_is_window_manager(iter->parent)) {
|
||||
iter = iter->parent;
|
||||
}
|
||||
|
||||
while (iter) {
|
||||
if (widget_is_window(iter)) {
|
||||
return iter;
|
||||
|
Loading…
Reference in New Issue
Block a user