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
676 B
32 lines
676 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"
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
|
||
|
|