From efc5763d94bac806906dd15d81a2ea894d83e2dc Mon Sep 17 00:00:00 2001 From: xianjimli Date: Fri, 19 Apr 2019 17:11:57 +0800 Subject: [PATCH] improve widget_get_window --- src/base/widget.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/base/widget.c b/src/base/widget.c index 7bb1a1ade..6dd12f53d 100644 --- a/src/base/widget.c +++ b/src/base/widget.c @@ -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;