summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-01-30 11:07:07 -0500
committerChris Michael <cp.michael@samsung.com>2017-01-30 11:07:07 -0500
commit51da6df5add635b66999c285dd68acc2e248e13c (patch)
tree5735201a936937280486a8ac9f20403edfd8f7fc
parent005ad5eeefcbc26dfaf156bd3a252bf5ec8f8a5a (diff)
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 <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c7
1 files 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)
1745{ 1745{
1746 Evas_Engine_Info_Wayland *einfo; 1746 Evas_Engine_Info_Wayland *einfo;
1747 Ecore_Evas_Engine_Wl_Data *wdata; 1747 Ecore_Evas_Engine_Wl_Data *wdata;
1748 int fw, fh;
1749 1748
1750 LOGFN(__FILE__, __LINE__, __FUNCTION__); 1749 LOGFN(__FILE__, __LINE__, __FUNCTION__);
1751 1750
@@ -1758,10 +1757,12 @@ _ecore_evas_wl_common_show(Ecore_Evas *ee)
1758 return; 1757 return;
1759 } 1758 }
1760 1759
1761 evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
1762
1763 if (wdata->win) 1760 if (wdata->win)
1764 { 1761 {
1762 int fw, fh;
1763
1764 evas_output_framespace_get(ee->evas, NULL, NULL, &fw, &fh);
1765
1765 ecore_wl2_window_show(wdata->win); 1766 ecore_wl2_window_show(wdata->win);
1766 ecore_wl2_window_alpha_set(wdata->win, ee->alpha); 1767 ecore_wl2_window_alpha_set(wdata->win, ee->alpha);
1767 1768