|
|
|
@ -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);
|
|
|
|
|