summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-02 02:06:15 -0600
committerTimothy Pearson <[email protected]>2012-03-02 02:06:15 -0600
commit5b49d2a601f5ff9ac229348329bbbc64136312db (patch)
tree099a57e727f52e0a3725849e387aff63ead81296 /src
parent9e53dcb890bcfadd41493598ba94badd893a1f58 (diff)
downloadkpowersave-5b49d2a601f5ff9ac229348329bbbc64136312db.tar.gz
kpowersave-5b49d2a601f5ff9ac229348329bbbc64136312db.zip
Rename additional global functions and variables for tqt3
Diffstat (limited to 'src')
-rw-r--r--src/inactivity.cpp6
-rw-r--r--src/screen.cpp12
2 files changed, 9 insertions, 9 deletions
diff --git a/src/inactivity.cpp b/src/inactivity.cpp
index 8dde0b7..3a215af 100644
--- a/src/inactivity.cpp
+++ b/src/inactivity.cpp
@@ -51,7 +51,7 @@ inactivity::inactivity() {
blacklisted_running = false;
int dummy = 0;
- has_XSC_Extension = XScreenSaverQueryExtension( qt_xdisplay(), &dummy, &dummy );
+ has_XSC_Extension = XScreenSaverQueryExtension( tqt_xdisplay(), &dummy, &dummy );
checkInactivity = new TQTimer( this );
connect( checkInactivity, TQT_SIGNAL(timeout()), this, TQT_SLOT(check()));
@@ -196,7 +196,7 @@ unsigned long inactivity::getXInactivity(){
if(has_XSC_Extension) {
static XScreenSaverInfo* mitInfo = 0;
if (!mitInfo) mitInfo = XScreenSaverAllocInfo ();
- XScreenSaverQueryInfo (qt_xdisplay(), DefaultRootWindow (qt_xdisplay()), mitInfo);
+ XScreenSaverQueryInfo (tqt_xdisplay(), DefaultRootWindow (tqt_xdisplay()), mitInfo);
kdDebugFuncOut(trace);
return workaroundCreepyXServer(mitInfo->idle);
}
@@ -231,7 +231,7 @@ unsigned long inactivity::workaroundCreepyXServer( unsigned long _idleTime ){
CARD16 state;
BOOL onoff;
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
kdDebug() << "Current idleTime: " << _idleTime << endl;
diff --git a/src/screen.cpp b/src/screen.cpp
index 8caf48b..2a7f658 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -201,7 +201,7 @@ void screen::xscreensaver_ping(){
kdDebugFuncIn(trace);
if(!got_XScreensaver) {
- mDisplay = qt_xdisplay();
+ mDisplay = tqt_xdisplay();
xs_windowid = find_xscreensaver_window(mDisplay);
Atom deactivate = XInternAtom(mDisplay, "DEACTIVATE", False);
@@ -264,7 +264,7 @@ int screen::checkScreenSaverStatus() {
// check for XScreensaver
if (got_XScreensaver) return 11;
else if(!got_XScreensaver) {
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
Window windowid = find_xscreensaver_window(dpy);
if(windowid == 0) {
//Xscreensaver not detected
@@ -333,7 +333,7 @@ int screen::checkDPMSStatus(){
BOOL onoff;
int dummy;
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
if (!DPMSQueryExtension(dpy, &dummy, &dummy) || !DPMSCapable(dpy)){
has_DPMS = false;
@@ -368,7 +368,7 @@ bool screen::setDPMS( bool enable ){
defaultHandler = XSetErrorHandler(badwindow_handler);
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
int dummy;
if (!DPMSQueryExtension(dpy, &dummy, &dummy) || !DPMSCapable(dpy)){
@@ -403,7 +403,7 @@ bool screen::setDPMSTimeouts( int standby_timeout, int suspend_timeout, int off_
//XErrFunc defaultHandler;
defaultHandler = XSetErrorHandler(badwindow_handler);
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
int dummy;
if (!DPMSQueryExtension(dpy, &dummy, &dummy) || !DPMSCapable(dpy)){
@@ -705,7 +705,7 @@ void screen::cleanProcess(KProcess* proc)
void screen::fakeShiftKeyEvent() {
kdDebugFuncIn(trace);
- Display *dpy = qt_xdisplay();
+ Display *dpy = tqt_xdisplay();
if (dpy) {
XTestFakeKeyEvent(dpy, 62, 1, 0);