Draw shadow for popups even if they have shape, they should be almost rectangular

anyway, so this is a workaround as long as there's no support for shadows for shaped windows.
BUG: 162697


svn path=/trunk/KDE/kdebase/workspace/; revision=817551
This commit is contained in:
Luboš Luňák 2008-06-06 09:20:01 +00:00
parent 0ce86291c5
commit 75cd7922df

View file

@ -142,7 +142,9 @@ void ShadowEffect::windowClosed( EffectWindow* c )
bool ShadowEffect::useShadow( EffectWindow* w ) const
{
return !w->isDeleted() && !w->isDesktop() && !w->isDock() && !w->hasOwnShape();
return !w->isDeleted() && !w->isDesktop() && !w->isDock()
// popups may have shadow even if shaped, their shape is almost rectangular
&& ( !w->hasOwnShape() || w->isDropdownMenu() || w->isPopupMenu() || w->isComboBox());
}
void ShadowEffect::addQuadVertices(QVector<float>& verts, float x1, float y1, float x2, float y2) const