aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-11-30 10:51:51 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-30 15:15:02 +0900
commit2102ed9b7c7dbcda7f67379f42ed9dc97dfbff9f (patch)
tree6cdd7a9fdda6ba5cd2b9d3cdaaa752eb03beee91 /src/lib/elementary/efl_ui_win.c
parentedje_calc: round the scaled value when it is casted to int type. (diff)
downloadefl-2102ed9b7c7dbcda7f67379f42ed9dc97dfbff9f.tar.gz
win: Fix opaque regions for Wayland
In Wayland, an opaque window can still have shadow borders, and only needs to set the opaque_region appropriately. In X on the other hand, a window needs to be flagged as alpha in order to be properly blended (otherwise you'd get black borders). Thanks Derek for the report! This fixes c91360fcbd3ca
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index 8571c810f0..724d3bba30 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -414,10 +414,10 @@ _elm_win_apply_alpha(Eo *obj, Efl_Ui_Win_Data *sd)
}
else
{
- enabled |= (sd->csd.need && !sd->fullscreen);
#ifdef HAVE_ELEMENTARY_X
if (sd->x.xwin)
{
+ enabled |= (sd->csd.need && !sd->fullscreen);
if (enabled)
{
if (!ecore_x_screen_is_composited(0))