small change - doesnt fix a bug really... but get if screen is

composited before using argb in elm vs shaped.



SVN revision: 79878
This commit is contained in:
Carsten Haitzler 2012-11-30 10:26:18 +00:00
parent 50f95cfcf5
commit 83fa4f6868
1 changed files with 8 additions and 2 deletions

View File

@ -2674,7 +2674,13 @@ _win_constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list)
sd->wl.win = ecore_evas_wayland_window_get(sd->ee); sd->wl.win = ecore_evas_wayland_window_get(sd->ee);
#endif #endif
if ((_elm_config->bgpixmap) && (!_elm_config->compositing)) if ((_elm_config->bgpixmap)
#ifdef HAVE_ELEMENTARY_X
&&
(((sd->x.xwin) && (!ecore_x_screen_is_composited(0))) ||
(!sd->x.xwin)))
#endif
)
TRAP(sd, avoid_damage_set, ECORE_EVAS_AVOID_DAMAGE_EXPOSE); TRAP(sd, avoid_damage_set, ECORE_EVAS_AVOID_DAMAGE_EXPOSE);
// bg pixmap done by x - has other issues like can be redrawn by x before it // bg pixmap done by x - has other issues like can be redrawn by x before it
// is filled/ready by app // is filled/ready by app
@ -3259,7 +3265,7 @@ _alpha_set(Eo *obj, void *_pd, va_list *list)
{ {
if (enabled) if (enabled)
{ {
if (!_elm_config->compositing) if (!ecore_x_screen_is_composited(0))
elm_win_shaped_set(obj, enabled); elm_win_shaped_set(obj, enabled);
else else
TRAP(sd, alpha_set, enabled); TRAP(sd, alpha_set, enabled);