Use QApplication::desktop() to obtain the QDesktopWidget, as recommended in

the Qt docs. This will hopefully solve bug 61904.

CCMAIL: 61904-done@bugs.kde.org

svn path=/branches/KDE_3_1_BRANCH/kdenetwork/krfb/; revision=240312
This commit is contained in:
Tim Jansen
2003-07-31 22:57:16 +00:00
parent 5824df3d9f
commit 47a9860950

View File

@@ -279,9 +279,9 @@ PointerEvent::PointerEvent(int b, int _x, int _y) :
}
void PointerEvent::exec() {
static QDesktopWidget desktopWidget;
QDesktopWidget *desktopWidget = QApplication::desktop();
int screen = desktopWidget.screenNumber();
int screen = desktopWidget->screenNumber();
if (screen < 0)
screen = 0;
XTestFakeMotionEvent(dpy, screen, x, y, CurrentTime);