XRender backend: Paint shadow with window contents only, not with decoration

This notably fixes glitches with shadow menus of a well-known xul-based browser.
icc-effect-5.14.5
Jacopo De Simoi 2011-05-06 09:53:04 -04:00
parent ffd4385396
commit 57c2b33bce
1 changed files with 1 additions and 1 deletions

View File

@ -732,7 +732,7 @@ void SceneXrender::Window::performPaint(int mask, QRegion region, WindowPaintDat
}
//shadow
if (m_shadow) {
if (m_shadow && !(mask & PAINT_DECORATION_ONLY)) {
QRect stlr, str, strr, srr, sbrr, sbr, sblr, slr;
SceneXRenderShadow* m_xrenderShadow = static_cast<SceneXRenderShadow*>(m_shadow);
m_xrenderShadow->layoutShadowRects(str, strr, srr, sbrr, sbr, sblr, slr, stlr);