File kdm-fix-input-focus.patch of Package kdebase4-workspace

diff --git a/kdm/kfrontend/kfdialog.cpp b/kdm/kfrontend/kfdialog.cpp
index 3f6fa84..f6751a4 100644
--- a/kdm/kfrontend/kfdialog.cpp
+++ b/kdm/kfrontend/kfdialog.cpp
@@ -149,7 +149,7 @@ FDialog::exec()
     if (_grabInput)
         fakeFocusIn(winId());
     else
-        activateWindow();
+        XSetInputFocus(QX11Info::display(), winId(), RevertToParent, CurrentTime);
     QWidget *previous = current;
     current = this;
     inherited::exec();
@@ -158,7 +158,7 @@ FDialog::exec()
         if (_grabInput)
             fakeFocusIn(current->winId());
         else
-            current->activateWindow();
+            XSetInputFocus(QX11Info::display(), current->winId(), RevertToParent, CurrentTime);
     } else {
         if (_grabInput)
             unsecureInputs(QX11Info::display());
openSUSE Build Service is sponsored by