aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-03-14 16:03:36 -0500
committerDerek Foreman <derekf@osg.samsung.com>2018-03-14 16:08:07 -0500
commit812ab64413f3c4c9564ee734d47ed43fd8111157 (patch)
treece86d685ebfa03ec70f41041aae842c3a0b050dd
parenteolian: turn some state APIs into inlines over unit APIs (diff)
downloadefl-812ab64413f3c4c9564ee734d47ed43fd8111157.tar.gz
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.
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index c66da96a0c..ae3b3dc06d 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -2091,6 +2091,7 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
wdata->defer_show = EINA_TRUE;
return;
}
+ ee->visible = 1;
if (wdata->win)
{
@@ -2142,8 +2143,6 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
ee->prop.withdrawn = EINA_FALSE;
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->draw_ok = EINA_TRUE;
if (ee->func.fn_show) ee->func.fn_show(ee);