SVN commit 1154998 by aseigo:

since KWindowSystem::currentDesktop() always returns 1 on MS Windows, then it 
only makes sense for KWindowInfo::desktop() to also return 1 so that things 
like "windowInfo.isOnDesktop(KWindowSystem::currentDesktop())" actually stand a 
chance of working. if there's a reason for the mismatch, please let me know.

CCMAIL:[email protected]


 M  +2 -4      kwindowinfo_win.cpp  


--- trunk/KDE/kdelibs/kdeui/windowmanagement/kwindowinfo_win.cpp 
#1154997:1154998
@@ -202,9 +202,7 @@
 
 bool KWindowInfo::isOnDesktop( int desk ) const
 {
-    if(desk == desktop())
-        return true;
-    return false;
+    return desk == desktop();
 }
 
 bool KWindowInfo::onAllDesktops() const
@@ -214,7 +212,7 @@
 
 int KWindowInfo::desktop() const
 {
-    return 0;
+    return 1;
 }
 
 QRect KWindowInfo::geometry() const
_______________________________________________
Kde-windows mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-windows

Reply via email to