summaryrefslogtreecommitdiffstats
path: root/tdescreensaver/xsavers/saver.cpp
blob: dc3c397738e1b78d0c06836feca1b6f096e747d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <tdeapplication.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) : TQObject()
{
	Window root;
	int ai;
	unsigned int au;

	mDrawable = drawable;
	mGc = XCreateGC(tqt_xdisplay(), mDrawable, 0, 0);
	XGetGeometry(tqt_xdisplay(), mDrawable, &root, &ai, &ai,
		&mWidth, &mHeight, &au, &au); 
}

kScreenSaver::~kScreenSaver()
{
	XFreeGC(tqt_xdisplay(), mGc);
}

//-----------------------------------------------------------------------------