Sophie

Sophie

distrib > Mageia > 1 > x86_64 > by-pkgid > 6b0308b451bd1f8649c3d412b114791d > files > 1

polkit-kde-agent-1-0.99.0-2.mga1.src.rpm

From: Jonathan Thomas <echidnaman@kubuntu.org>
Date: Wed, 19 Jan 2011 15:21:53 +0000
Subject: Bring the auth dialog to the front when it is shown. Otherwise it pops up behind the app requesting it and the user never sees it.
X-Git-Url: http://quickgit.kde.org/?p=polkit-kde-agent-1.git&amp;a=commitdiff&amp;h=0701f84a57156f8f584bb4fe928811a26ceefcf0
---
Bring the auth dialog to the front when it is shown. Otherwise it pops up behind the app requesting it and the user never sees it.
---


--- a/policykitlistener.cpp
+++ b/policykitlistener.cpp
@@ -22,6 +22,7 @@
 #include "AuthDialog.h"
 
 #include <KDebug>
+#include <KWindowSystem>
 
 #include <PolkitQt1/Agent/Listener>
 #include <PolkitQt1/Agent/Session>
@@ -100,6 +101,7 @@ void PolicyKitListener::initiateAuthenti
     kDebug() << "WinId of the dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
     m_dialog.data()->setOptions();
     m_dialog.data()->show();
+    KWindowSystem::forceActiveWindow(m_dialog.data()->winId());
     kDebug() << "WinId of the shown dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
 
     m_numTries = 0;