#include #include #include #include #include #include #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); } //-----------------------------------------------------------------------------