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.
tdeartwork/tdescreensaver/xsavers/saver.cpp

32 lines
688 B

#include <tdeapplication.h>
#include <tdeglobal.h>
#include <tdeprocess.h>
#include <tdelocale.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);
}
//-----------------------------------------------------------------------------