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

List:       kde-commits
Subject:    KDE/kdebase/konqueror
From:       Laurent Montel <montel () kde ! org>
Date:       2006-10-26 7:57:43
Message-ID: 1161849463.444338.6935.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 599191 by mlaurent:

Better patch for windows support
(before to reimplement some kwin function for windows)


 M  +4 -2      KonquerorAdaptor.cpp  


--- trunk/KDE/kdebase/konqueror/KonquerorAdaptor.cpp #599190:599191
@@ -165,18 +165,20 @@
 
 QDBusObjectPath KonquerorAdaptor::windowForTab()
 {
-#ifdef Q_OS_UNIX	
     QList<KonqMainWindow*> *mainWindows = KonqMainWindow::mainWindowList();
     if ( mainWindows ) {
         foreach ( KonqMainWindow* window, *mainWindows ) {
+#ifdef Q_OS_UNIX
             KWin::WindowInfo winfo = KWin::windowInfo( window->winId(), NET::WMDesktop );
             if( winfo.isOnCurrentDesktop() &&
+#else
+	    if(
+#endif		    
                 !KonqMainWindow::isPreloaded() ) { // we want a tab in an already shown window
                 return QDBusObjectPath( '/' + window->objectName() );
             }
         }
     }
-#endif    
     return QDBusObjectPath();
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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