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 c91360fcbd
This commit is contained in:
Jean-Philippe Andre 2016-11-30 10:51:51 +09:00
parent 7cce8ae40d
commit 2102ed9b7c
1 changed files with 1 additions and 1 deletions

View File

@ -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))