You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
680 B
32 lines
680 B
15 years ago
|
#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"
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
14 years ago
|
kScreenSaver::kScreenSaver(Drawable drawable) : TQObject()
|
||
15 years ago
|
{
|
||
|
Window root;
|
||
|
int ai;
|
||
|
unsigned int au;
|
||
|
|
||
|
mDrawable = drawable;
|
||
13 years ago
|
mGc = XCreateGC(tqt_xdisplay(), mDrawable, 0, 0);
|
||
|
XGetGeometry(tqt_xdisplay(), mDrawable, &root, &ai, &ai,
|
||
15 years ago
|
&mWidth, &mHeight, &au, &au);
|
||
|
}
|
||
|
|
||
|
kScreenSaver::~kScreenSaver()
|
||
|
{
|
||
13 years ago
|
XFreeGC(tqt_xdisplay(), mGc);
|
||
15 years ago
|
}
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
|