Revision 61194c9...

Go back to digest for 30th September 2012

Other in KDE Base

Martin Gräßlin committed changes in [kde-workspace] /:

Move decoration pixmap handling from Client to PaintRedirector

The only task of the PaintRedirector is to redirect the painting of the
window decorations into Pixmaps. So it should actually do this by also
handling the four pixmaps for the decoration. This simplifies the code
as all the logic concerning redirecting the painting is now grouped
together.

Furthermore the PaintRedirector is now a child of the decoration widget,
which means it gets automatically destroyed whenever the decoration is
destroyed - the Client does not have to care about it.

Also the PaintRedirector gets only created if the Compositor is active as
it is not needed in the non-compositing case.

REVIEW: 106620

File Changes

Modified 8 files
  •   kwin/client.cpp
  •   kwin/client.h
  •   kwin/deleted.cpp
  •   kwin/deleted.h
  •   kwin/paintredirector.cpp
  •   kwin/paintredirector.h
  •   kwin/scene_opengl.cpp
  •   kwin/scene_xrender.cpp
8 files changed in total