From: Marcel Hollerbach Date: Sat, 16 Jul 2016 11:17:39 +0000 (+0200) Subject: elementary: only call ecore_wl2 if wayland is enabled X-Git-Tag: upstream/1.20.0~5151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cfaf332468062f72cbe54373940c84b3c469d976;p=platform%2Fupstream%2Fefl.git elementary: only call ecore_wl2 if wayland is enabled fix T4125 --- 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