summaryrefslogtreecommitdiffstats
path: root/kscreensaver/xsavers/saver.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit8b2aa1b5301ab60368a03e36df4ff5216726e87d (patch)
tree36163d4ee667c23b5cf232df2f3004cd0a76202a /kscreensaver/xsavers/saver.cpp
downloadtdeartwork-8b2aa1b5301ab60368a03e36df4ff5216726e87d.tar.gz
tdeartwork-8b2aa1b5301ab60368a03e36df4ff5216726e87d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeartwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kscreensaver/xsavers/saver.cpp')
-rw-r--r--kscreensaver/xsavers/saver.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/kscreensaver/xsavers/saver.cpp b/kscreensaver/xsavers/saver.cpp
new file mode 100644
index 00000000..b905d619
--- /dev/null
+++ b/kscreensaver/xsavers/saver.cpp
@@ -0,0 +1,31 @@
+#include <kapplication.h>
+#include <kglobal.h>
+#include <kprocess.h>
+#include <klocale.h>
+#include <kstandarddirs.h>
+#include <X11/Xlib.h>
+
+#include "saver.h"
+#include "saver.moc"
+
+//-----------------------------------------------------------------------------
+kScreenSaver::kScreenSaver(Drawable drawable) : QObject()
+{
+ Window root;
+ int ai;
+ unsigned int au;
+
+ mDrawable = drawable;
+ mGc = XCreateGC(qt_xdisplay(), mDrawable, 0, 0);
+ XGetGeometry(qt_xdisplay(), mDrawable, &root, &ai, &ai,
+ &mWidth, &mHeight, &au, &au);
+}
+
+kScreenSaver::~kScreenSaver()
+{
+ XFreeGC(qt_xdisplay(), mGc);
+}
+
+//-----------------------------------------------------------------------------
+
+