From 51da6df5add635b66999c285dd68acc2e248e13c Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 30 Jan 2017 11:07:07 -0500 Subject: [PATCH] ecore-evas-wayland: Only fetch framespace values if we have a window Minor optimization to avoid always fetching framespace values even if we were not going to use them. @optimize Signed-off-by: Chris Michael --- .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 7943499eaa..ad9d64f410 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 @@ -1745,7 +1745,6 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee) { Evas_Engine_Info_Wayland *einfo; Ecore_Evas_Engine_Wl_Data *wdata; - int fw, fh; LOGFN(__FILE__, __LINE__, __FUNCTION__); @@ -1758,10 +1757,12 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee) return; } - evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh); - if (wdata->win) { + int fw, fh; + + evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh); + ecore_wl2_window_show(wdata->win); ecore_wl2_window_alpha_set(wdata->win, ee->alpha);