summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-05-02 15:57:21 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-05-02 15:57:21 -0400
commit78c2f1e659b12440cbf6c5f646924da4bf5160c1 (patch)
treec2011e72b2bab0eeb856d1078b9aca4138f8c586
parent94d9a0fd248a27bcb02500f7b5216e37f8e02155 (diff)
downloadefl-78c2f1e659b12440cbf6c5f646924da4bf5160c1.tar.gz
efl_ui_win: ignore attempts to resize window to 0x0 during frame sizing
Summary: in many cases, a 0x0 size is found here as a result of various quirks at different states of window initialization. passing 0x0 will clamp the size to 1x1 and, for some engines, create a race condition during initial sizing which causes the window not to render ref T6907 Reviewers: cedric, ManMower, vtorri Reviewed By: vtorri Subscribers: raster, stefan_schmidt Tags: #efl Maniphest Tasks: T6907 Differential Revision: https://phab.enlightenment.org/D6016
-rw-r--r--src/lib/elementary/efl_ui_win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 7f90d3ff58..f273b7dc4f 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1536,7 +1536,8 @@ _elm_win_frame_obj_update(Efl_Ui_Win_Data *sd, Eina_Bool force)
evas_object_geometry_get(sd->obj, NULL, NULL, &w, &h);
else
w = ow, h = oh;
- TRAP(sd, resize, w, h);
+ if (w && h)
+ TRAP(sd, resize, w, h);
}
static void