bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=cfaf332468062f72cbe54373940c84b3c469d976

commit cfaf332468062f72cbe54373940c84b3c469d976
Author: Marcel Hollerbach <[email protected]>
Date:   Sat Jul 16 13:17:39 2016 +0200

    elementary: only call ecore_wl2 if wayland is enabled
    
    fix T4125
---
 src/lib/elementary/efl_ui_win.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d4f0527..a27d3b2 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3744,8 +3744,10 @@ _elm_win_frame_del(Efl_Ui_Win_Data *sd)
 static void
 _elm_win_frame_hide(Efl_Ui_Win_Data *sd)
 {
+#ifdef HAVE_ELEMENTARY_WL2
    Eina_Bool alpha;
    Ecore_Evas_Engine_Wl_Data *wdata;
+#endif
    int x, y, w, h;
    int ox, oy, ow, oh;
 
@@ -3761,6 +3763,8 @@ _elm_win_frame_hide(Efl_Ui_Win_Data *sd)
 
    /* evas_output_framespace_set(sd->evas, 0, 0, 0, 0); */
 
+#ifdef HAVE_ELEMENTARY_WL2
+
    wdata = sd->ee->engine.data;
    wdata->content.x = x;
    wdata->content.y = y;
@@ -3775,6 +3779,7 @@ _elm_win_frame_hide(Efl_Ui_Win_Data *sd)
 
    ecore_wl2_window_geometry_set(sd->wl.win, x, y, w, h);
    ecore_wl2_window_input_region_set(sd->wl.win, x, y, w, h);
+#endif
 }
 
 static void

-- 


Reply via email to