forked from enlightenment/efl
ee_wayland: Set window visible before trying to render it
if we try to render before setting ee->visible the results aren't likely to be... visible.
This commit is contained in:
parent
ab43e61ef6
commit
812ab64413
|
@ -2091,6 +2091,7 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
|
||||||
wdata->defer_show = EINA_TRUE;
|
wdata->defer_show = EINA_TRUE;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
ee->visible = 1;
|
||||||
|
|
||||||
if (wdata->win)
|
if (wdata->win)
|
||||||
{
|
{
|
||||||
|
@ -2142,8 +2143,6 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
|
||||||
ee->prop.withdrawn = EINA_FALSE;
|
ee->prop.withdrawn = EINA_FALSE;
|
||||||
if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
|
if (ee->func.fn_state_change) ee->func.fn_state_change(ee);
|
||||||
|
|
||||||
if (ee->visible) return;
|
|
||||||
ee->visible = 1;
|
|
||||||
ee->should_be_visible = 1;
|
ee->should_be_visible = 1;
|
||||||
ee->draw_ok = EINA_TRUE;
|
ee->draw_ok = EINA_TRUE;
|
||||||
if (ee->func.fn_show) ee->func.fn_show(ee);
|
if (ee->func.fn_show) ee->func.fn_show(ee);
|
||||||
|
|
Loading…
Reference in New Issue