Revision 574e02c...
Go back to digest for 2nd September 2012Features in KDE Base
Martin Gräßlin committed changes in [kde-workspace] /:
Make the Compositor a proper Singleton
The Compositor class actually behaves like a Singleton so it should be
one. Therefore four static methods are added:
* self() to access the Singleton
* createCompositor() to be used by Workspace to create the instance
* isCreated() to have a simple check whether the Singleton is already
created
* compositing() as a shortcut to test whether the compositor has been
created and is active
The isCreated() check is actually required as especially Clients might
be created and trying to access the Compositor before it is setup.
File Changes
Modified 8 files
- kwin/bridge.cpp
- kwin/client.cpp
- kwin/composite.cpp
- kwin/composite.h
- kwin/geometry.cpp
- kwin/paintredirector.cpp
- kwin/workspace.cpp
- kwin/workspace.h
8 files changed in total