aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-07-21 13:50:07 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-07-21 13:51:16 -0400
commit9b11b227a376b03d705bfced440a3bebe608eb4a (patch)
treefcc110be8915dc2a8f1a2fa17608bb183dc33651 /src/lib/elementary
parentelementary: Remove logically dead code (diff)
downloadefl-9b11b227a376b03d705bfced440a3bebe608eb4a.tar.gz
elm_win: simplify borderless_set when reapplying the same state
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_win.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 111ef127e9..504503f001 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -4944,13 +4944,12 @@ _efl_ui_win_borderless_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *sd, Eina_Bool b
if (borderless)
{
- if (need_frame)
+ if (need_frame && sd->frame_obj)
_elm_win_frame_del(sd);
}
- else
+ else if (need_frame && (!sd->frame_obj))
{
- if (need_frame)
- _elm_win_frame_add(sd, "default");
+ _elm_win_frame_add(sd, "default");
if (sd->frame_obj)
evas_object_show(sd->frame_obj);