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.
This commit is contained in:
Jacopo De Simoi 2011-05-06 09:53:04 -04:00
parent ffd4385396
commit 57c2b33bce

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);