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