forked from enlightenment/efl
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
This commit is contained in:
parent
94d9a0fd24
commit
78c2f1e659
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue