diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:16:15 -0600 |
commit | 7e09b5c2efae58399621a938de26b9675b8ba621 (patch) | |
tree | de2c9535e1f4c48ae91910492d298eba1d593fd5 /tdescreensaver/xsavers/saver.cpp | |
parent | 159f7e147ac33c924b3ce9050c8f03cbc54916ee (diff) | |
download | tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.tar.gz tdeartwork-7e09b5c2efae58399621a938de26b9675b8ba621.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdescreensaver/xsavers/saver.cpp')
-rw-r--r-- | tdescreensaver/xsavers/saver.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tdescreensaver/xsavers/saver.cpp b/tdescreensaver/xsavers/saver.cpp new file mode 100644 index 00000000..1c11fd73 --- /dev/null +++ b/tdescreensaver/xsavers/saver.cpp @@ -0,0 +1,31 @@ +#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) : 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); +} + +//----------------------------------------------------------------------------- + + |