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

List:       kde-commits
Subject:    extragear/office/kile/src
From:       Michel Ludwig <michel.ludwig () kdemail ! net>
Date:       2010-04-04 16:56:54
Message-ID: 20100404165654.4BBD4AC88E () svn ! kde ! org
[Download RAW message or body]

SVN commit 1111024 by mludwig:

Be very agressive when it comes to raising the main window to the top in the \
'setLine' method (by using 'KWindowSystem::forceActiveWindow').


 M  +4 -0      kile.cpp  


--- trunk/extragear/office/kile/src/kile.cpp #1111023:1111024
@@ -45,6 +45,7 @@
 #include <KXMLGUIFactory>
 #include <KXmlGuiWindow>
 #include <KSelectAction>
+#include <KWindowSystem>
 
 #include "abbreviationmanager.h"
 #include "configurationmanager.h"
@@ -1242,6 +1243,9 @@
 	if (view && ok) {
 		m_mainWindow->show();
 		m_mainWindow->raise();
+		m_mainWindow->activateWindow();
+		// be very agressive when it comes to raising the main window to the top
+		KWindowSystem::forceActiveWindow(m_mainWindow->winId());
 		view->setFocus();
 		editorExtension()->goToLine(l - 1, view);
 


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

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