summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2018-12-05 10:35:30 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2018-12-05 10:35:30 +0900
commitdf216a4f1d9793f001fc48c56c3bbbc49aed97b4 (patch)
treed7fc1c18497ff0c8ba75f20fc961911cb1ab9594 /src/lib/elementary
parenta31792e09e0756d1acaba98a9fca18caea45cefb (diff)
efl_ui_win: enable bg color set although alpha is set
Summary: This patch sets background transparent if window supports alpha. If alpha window does not emit signal to show background rectangle, then the background color set by _efl_ui_win_part_color_set cannot be applied because the background rectangle remains hidden. This patch fixes the side effect of D6569. Test Plan: Run Efl.Ui.Win (Bg part) in elementary_test. Reviewers: zmike, devilhorns, woohyun Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7302
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/efl_ui_win.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 535316119e..1e12b46702 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -4659,11 +4659,18 @@ _elm_win_frame_style_update(Efl_Ui_Win_Data *sd, Eina_Bool force_emit, Eina_Bool
4659 else 4659 else
4660#endif 4660#endif
4661 focus = ecore_evas_focus_get(sd->ee); 4661 focus = ecore_evas_focus_get(sd->ee);
4662 bg_solid = sd->csd.need_bg_solid && (!alpha);
4663 bg_standard = sd->csd.need_bg_standard; 4662 bg_standard = sd->csd.need_bg_standard;
4664 unresizable = sd->csd.need_unresizable; 4663 unresizable = sd->csd.need_unresizable;
4665 menu = sd->csd.need_menu; 4664 menu = sd->csd.need_menu;
4666 indicator = sd->csd.need_indicator; 4665 indicator = sd->csd.need_indicator;
4666 bg_solid = sd->csd.need_bg_solid;
4667 /* Set background transparent if window supports alpha.
4668 * If alpha window does not emit signal to show background rectangle, then
4669 * the background color set by _efl_ui_win_part_color_set cannot be applied
4670 * because the background rectangle remains hidden.
4671 */
4672 if (alpha && bg_solid && !(sd->csd.cur_bg_solid))
4673 edje_object_color_class_set(sd->frame_obj, "elm/win/background", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
4667 4674
4668 /* FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME 4675 /* FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME FIXME
4669 * At the moment, E Wayland uses SSD for its internal windows. Which means 4676 * At the moment, E Wayland uses SSD for its internal windows. Which means