aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-10-28 15:26:59 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-23 13:04:12 +0900
commit63fcd3d83114c2220bd9914d105f3a0c94c2f38a (patch)
treead8563d43e8ae7196df27729bb69ef2e1a3c4712 /src/lib/elementary/efl_ui_win.c
parentwin: Apply alpha for CSD mode, even in X (diff)
downloadefl-63fcd3d83114c2220bd9914d105f3a0c94c2f38a.tar.gz
win: Make X windows border when using CSD mode
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index a30d98d967..fd2752fa56 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -3234,6 +3234,9 @@ _elm_win_xwin_update(Efl_Ui_Win_Data *sd)
if (sd->wm_rot.preferred_rot != -1)
ecore_evas_wm_rotation_preferred_rotation_set(sd->ee,
sd->wm_rot.preferred_rot);
+
+ if (sd->need_frame)
+ TRAP(sd, borderless_set, EINA_TRUE);
}
#endif
@@ -5317,7 +5320,7 @@ _efl_ui_win_center(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool h, Eina_Bool v)
}
EOLIAN static void
-_efl_ui_win_borderless_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool borderless)
+_efl_ui_win_borderless_set(Eo *obj, Efl_Ui_Win_Data *sd, Eina_Bool borderless)
{
Eina_Bool need_frame = sd->need_frame && !sd->fullscreen;
@@ -5335,7 +5338,9 @@ _efl_ui_win_borderless_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool b
evas_object_show(sd->frame_obj);
}
- TRAP(sd, borderless_set, borderless);
+ if (!sd->need_frame)
+ TRAP(sd, borderless_set, borderless);
+ _elm_win_resize_objects_eval(obj);
#ifdef HAVE_ELEMENTARY_X
_elm_win_xwin_update(sd);
#endif