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:
parent
ffd4385396
commit
57c2b33bce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue