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 e5e4937750..81d16a44ad 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 @@ -1752,19 +1752,13 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee) einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas); if (einfo) { - struct wl_surface *surf; - - surf = ecore_wl2_window_surface_get(wdata->win); - if ((!einfo->info.wl_surface) || (einfo->info.wl_surface != surf)) - einfo->info.wl_surface = surf; - + einfo->info.wl_surface = ecore_wl2_window_surface_get(wdata->win); einfo->info.hidden = EINA_FALSE; + einfo->www_avail = !!wdata->win->www_surface; + einfo->just_mapped = EINA_TRUE; if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) ERR("Failed to set Evas Engine Info for '%s'", ee->driver); evas_damage_rectangle_add(ee->evas, 0, 0, ee->w + fw, ee->h + fh); - - einfo->www_avail = !!wdata->win->www_surface; - einfo->just_mapped = EINA_TRUE; } }