2006-07-05 12:30:03 +00:00
|
|
|
/*****************************************************************
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
Copyright (C) 2006 Lubos Lunak <l.lunak@kde.org>
|
|
|
|
|
|
|
|
You can Freely distribute this program under the GNU General Public
|
|
|
|
License. See the file "COPYING" for the exact licensing terms.
|
|
|
|
******************************************************************/
|
|
|
|
|
|
|
|
#ifndef KWIN_SCENE_XRENDER_H
|
|
|
|
#define KWIN_SCENE_XRENDER_H
|
|
|
|
|
2006-07-05 13:26:08 +00:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#ifdef HAVE_XRENDER
|
|
|
|
#include <X11/extensions/Xrender.h>
|
|
|
|
|
|
|
|
#include "scene.h"
|
|
|
|
|
2006-07-05 12:30:03 +00:00
|
|
|
namespace KWinInternal
|
|
|
|
{
|
|
|
|
|
2006-07-05 13:26:08 +00:00
|
|
|
class SceneXrender
|
|
|
|
: public Scene
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SceneXrender( Workspace* ws );
|
|
|
|
virtual ~SceneXrender();
|
|
|
|
virtual void paint();
|
|
|
|
private:
|
|
|
|
void createBuffer();
|
|
|
|
XRenderPictFormat* format;
|
|
|
|
Picture front;
|
|
|
|
Picture buffer;
|
|
|
|
};
|
|
|
|
|
2006-07-05 12:30:03 +00:00
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|
2006-07-05 13:26:08 +00:00
|
|
|
|
|
|
|
#endif
|