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:
parent
0ce86291c5
commit
75cd7922df
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue