aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-10-27 16:55:16 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-23 13:04:12 +0900
commitc91360fcbd3ca6a53e15eb40e80d4bf813b1b4dd (patch)
tree032e110c290eb0335744f7db1acc6e117d598589 /src/lib/elementary/efl_ui_win.c
parentwin: Factorize code to select frame mode (diff)
downloadefl-c91360fcbd3ca6a53e15eb40e80d4bf813b1b4dd.tar.gz
win: Apply alpha for CSD mode, even in X
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index cd7a4a3863..a30d98d967 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -418,6 +418,8 @@ _elm_win_apply_alpha(Eo *obj, Efl_Ui_Win_Data *sd)
{
Eina_Bool enabled;
+ if (!sd->ee) return;
+
enabled = sd->theme_alpha | sd->application_alpha;
if (sd->img_obj)
{
@@ -426,6 +428,7 @@ _elm_win_apply_alpha(Eo *obj, Efl_Ui_Win_Data *sd)
}
else
{
+ enabled |= (sd->need_frame && !sd->fullscreen);
#ifdef HAVE_ELEMENTARY_X
if (sd->x.xwin)
{
@@ -4642,8 +4645,6 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
return NULL;
}
- _elm_win_need_frame_adjust(sd, engine);
-
if (!sd->accel_pref)
eina_stringshare_replace(&sd->accel_pref, elm_config_accel_preference_get());
@@ -4878,6 +4879,9 @@ _elm_win_finalize_internal(Eo *obj, Efl_Ui_Win_Data *sd, const char *name, Elm_W
_elm_win_on_resize_obj_changed_size_hints, obj);
}
+ _elm_win_need_frame_adjust(sd, engine);
+ _elm_win_apply_alpha(obj, sd);
+
/* do not append to list; all windows render as black rects */
if (type != ELM_WIN_FAKE)
{