Revision fbec8ea...

Go back to digest for 6th April 2014

Bug Fixes in KDE Base

Martin Gräßlin committed changes in [kwin] /:

[scene-xrender] Do not render deco part if it doesn't end on screen

If the deco part doesn't exist or the target rect is empty, KWin should
not try to composite the deco part on the screen. It can be an empty
rect for maximized windows. If the render composite is tried it results
in an error (note - man page says "This request does never generate any
errors.").

To simplify the macro is turned into a lambda.

The root cause for this problem is that PaintRedirector creates an
XRenderPicture for those invalid geometries and this requests arleady
fails. Thus RasterXRenderPaintRedirector is adjusted to not create the
XRenderPicture in that case and set it to nullptr. For a null
XRenderPicture XCB_RENDER_PICTURE_NONE is returned.


REVIEW: 117373

File Changes

Modified 2 files
  •   paintredirector.cpp
  •   scene_xrender.cpp
2 files changed in total