3926613
From 0701f84a57156f8f584bb4fe928811a26ceefcf0 Mon Sep 17 00:00:00 2001
3926613
From: Jonathan Thomas <echidnaman@kubuntu.org>
3926613
Date: Wed, 19 Jan 2011 10:21:53 -0500
3926613
Subject: [PATCH 05/20] Bring the auth dialog to the front when it is shown.
3926613
 Otherwise it pops up behind the app requesting it and
3926613
 the user never sees it.
3926613
3926613
---
3926613
 policykitlistener.cpp |    2 ++
3926613
 1 files changed, 2 insertions(+), 0 deletions(-)
3926613
3926613
diff --git a/policykitlistener.cpp b/policykitlistener.cpp
3926613
index 68185bc..bb95f1d 100644
3926613
--- a/policykitlistener.cpp
3926613
+++ b/policykitlistener.cpp
3926613
@@ -22,6 +22,7 @@
3926613
 #include "AuthDialog.h"
3926613
 
3926613
 #include <KDebug>
3926613
+#include <KWindowSystem>
3926613
 
3926613
 #include <PolkitQt1/Agent/Listener>
3926613
 #include <PolkitQt1/Agent/Session>
3926613
@@ -100,6 +101,7 @@ void PolicyKitListener::initiateAuthentication(const QString &actionId,
3926613
     kDebug() << "WinId of the dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
3926613
     m_dialog.data()->setOptions();
3926613
     m_dialog.data()->show();
3926613
+    KWindowSystem::forceActiveWindow(m_dialog.data()->winId());
3926613
     kDebug() << "WinId of the shown dialog is " << m_dialog.data()->winId() << m_dialog.data()->effectiveWinId();
3926613
 
3926613
     m_numTries = 0;
3926613
-- 
3926613
1.7.7.4
3926613