summaryrefslogtreecommitdiff
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
parentf88f0798bafd91c0188f50c303fd0263dba3c9c4 (diff)
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 T5322
Diffstat (limited to '')
-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)
824static void 824static void
825_elm_win_obj_intercept_lower(void *data, Evas_Object *obj EINA_UNUSED) 825_elm_win_obj_intercept_lower(void *data, Evas_Object *obj EINA_UNUSED)
826{ 826{
827 // Note: This is probably not necessary anymore (Win ignores lower)
827 ELM_WIN_DATA_GET(data, sd); 828 ELM_WIN_DATA_GET(data, sd);
828 TRAP(sd, lower); 829 TRAP(sd, lower);
829} 830}
@@ -5557,6 +5558,18 @@ elm_win_raise(Eo *obj)
5557} 5558}
5558 5559
5559EOLIAN static void 5560EOLIAN static void
5561_efl_ui_win_efl_gfx_stack_lower(Eo *obj, Efl_Ui_Win_Data *pd EINA_UNUSED)
5562{
5563 // Do nothing: in X we could request to stack lower but that has been abused
5564 // and transformed into a kind of "iconify". As a consequence, lower is
5565 // not allowed in EO land.
5566 if (!elm_widget_is_legacy(obj)) return;
5567
5568 // Legacy support...
5569 elm_win_lower(obj);
5570}
5571
5572EOLIAN static void
5560_efl_ui_win_center(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool h, Eina_Bool v) 5573_efl_ui_win_center(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool h, Eina_Bool v)
5561{ 5574{
5562 int win_w, win_h, screen_x, screen_y, screen_w, screen_h, nx, ny; 5575 int win_w, win_h, screen_x, screen_y, screen_w, screen_h, nx, ny;