mirror of
https://github.com/KDE/krfb
synced 2026-07-01 07:31:16 -07:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user