[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 61904] krfb crashes after entering password for GL screensaver
From:       <tim () tjansen ! de>
Date:       2003-07-31 22:57:19
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
     
http://bugs.kde.org/show_bug.cgi?id=61904     
tim@tjansen.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From tim@tjansen.de  2003-08-01 00:57 -------
Subject: KDE_3_1_BRANCH: kdenetwork/krfb/krfb

CVS commit by tjansen: 

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


  M +2 -2      rfbcontroller.cc   1.46.2.5


--- kdenetwork/krfb/krfb/rfbcontroller.cc  #1.46.2.4:1.46.2.5
@@ -280,7 +280,7 @@ PointerEvent::PointerEvent(int b, int _x
 
 void PointerEvent::exec() {
-        static QDesktopWidget desktopWidget;
+        QDesktopWidget *desktopWidget = QApplication::desktop();
 
-        int screen = desktopWidget.screenNumber();
+        int screen = desktopWidget->screenNumber();
         if (screen < 0)
                 screen = 0;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic