|
|
|
@ -70,7 +70,7 @@ AwayManager::AwayManager(TQObject* parent) : TQObject(parent)
|
|
|
|
|
m_connectionManager = static_cast<KonversationApplication*>(kapp)->getConnectionManager();
|
|
|
|
|
|
|
|
|
|
#ifdef TQ_WS_X11
|
|
|
|
|
Display* display = qt_xdisplay();
|
|
|
|
|
Display* display = tqt_xdisplay();
|
|
|
|
|
d->root = DefaultRootWindow(display);
|
|
|
|
|
d->screen = ScreenOfDisplay(display, DefaultScreen (display));
|
|
|
|
|
|
|
|
|
@ -78,12 +78,12 @@ AwayManager::AwayManager(TQObject* parent) : TQObject(parent)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef HasXidle
|
|
|
|
|
d->useXidle = XidleQueryExtension(qt_xdisplay(), &dummy, &dummy);
|
|
|
|
|
d->useXidle = XidleQueryExtension(tqt_xdisplay(), &dummy, &dummy);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef HasScreenSaver
|
|
|
|
|
if (!d->useXidle)
|
|
|
|
|
d->useMit = XScreenSaverQueryExtension(qt_xdisplay(), &dummy, &dummy);
|
|
|
|
|
d->useMit = XScreenSaverQueryExtension(tqt_xdisplay(), &dummy, &dummy);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
m_activityTimer = new TQTimer(this, "AwayTimer");
|
|
|
|
@ -173,7 +173,7 @@ bool AwayManager::Xactivity()
|
|
|
|
|
bool activity = false;
|
|
|
|
|
|
|
|
|
|
#ifdef TQ_WS_X11
|
|
|
|
|
Display* display = qt_xdisplay();
|
|
|
|
|
Display* display = tqt_xdisplay();
|
|
|
|
|
Window dummyW;
|
|
|
|
|
int dummyC;
|
|
|
|
|
unsigned int mask;
|
|
|
|
|