When trying todo composite for popups, check that 1) the user wanted to use

it AND 2) X can actually do it (ie: composite is enabled).


SVN revision: 33289
This commit is contained in:
Christopher Michael 2007-12-29 21:43:59 +00:00
parent 636d2ecf29
commit 9d5667ee77
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ e_popup_edje_bg_object_set(E_Popup *pop, Evas_Object *o)
pop->shaped = 1;
else
pop->shaped = 0;
if (e_config->use_composite)
/* check if user wanted composite AND that X can do it */
if ((e_config->use_composite) && (ecore_x_composite_query()))
{
ecore_evas_alpha_set(pop->ecore_evas, pop->shaped);
pop->evas_win = ecore_evas_software_x11_window_get(pop->ecore_evas);