aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-31 16:58:02 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-01 10:09:37 +0900
commit4d6bb96e8d379b69243247fbf5bf00e4f386133b (patch)
treef4de69b0e787a1d869e3d06248fdfa7412b6800f /src/lib/elementary/efl_ui_win.c
parentwin: Implement raise from stack (EO) (diff)
downloadefl-4d6bb96e8d379b69243247fbf5bf00e4f386133b.tar.gz
win: Drop calls to lower when using the EO API
Note: The distinction is made on how the window was created, not on which API is used (evas_object_lower or efl_gfx_stack_lower or elm_win_lower). Ref https://phab.enlightenment.org/T5322
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index d4bea99f22..8a6e487d2f 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -824,6 +824,7 @@ _elm_win_obj_intercept_raise(void *data, Evas_Object *obj EINA_UNUSED)
static void
_elm_win_obj_intercept_lower(void *data, Evas_Object *obj EINA_UNUSED)
{
+ // Note: This is probably not necessary anymore (Win ignores lower)
ELM_WIN_DATA_GET(data, sd);
TRAP(sd, lower);
}
@@ -5557,6 +5558,18 @@ elm_win_raise(Eo *obj)
}
EOLIAN static void
+_efl_ui_win_efl_gfx_stack_lower(Eo *obj, Efl_Ui_Win_Data *pd EINA_UNUSED)
+{
+ // Do nothing: in X we could request to stack lower but that has been abused
+ // and transformed into a kind of "iconify". As a consequence, lower is
+ // not allowed in EO land.
+ if (!elm_widget_is_legacy(obj)) return;
+
+ // Legacy support...
+ elm_win_lower(obj);
+}
+
+EOLIAN static void
_efl_ui_win_center(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool h, Eina_Bool v)
{
int win_w, win_h, screen_x, screen_y, screen_w, screen_h, nx, ny;