https://bugs.kde.org/show_bug.cgi?id=353428

--- Comment #33 from Thomas Lübking <thomas.luebk...@gmail.com> ---
In theory™, this should do:

diff --git a/main_x11.cpp b/main_x11.cpp
index 2c13743..1736f0d 100644
--- a/main_x11.cpp
+++ b/main_x11.cpp
@@ -173,7 +173,8 @@ void ApplicationX11::performStartup()
                                                                               
                                  maskValues)));
         if (!redirectCheck.isNull()) {
             fputs(i18n("kwin: another window manager is running (try using
--replace)\n").toLocal8Bit().constData(), stderr);
-            ::exit(1);
+            if (!wasCrash()) // if this is a crash-restart, DrKonqi may have
stopped the process w/o killing the connection
+                ::exit(1);
         }

         createInput();
@@ -185,7 +186,7 @@ void ApplicationX11::performStartup()
     });
     // we need to do an XSync here, otherwise the QPA might crash us later on
     Xcb::sync();
-    owner->claim(m_replace, true);
+    owner->claim(m_replace || wasCrash(), true);

     createAtoms();
 }



But actually just stopping kwin ain't enough - and the behavior is still not
deterministic.
So let's wait whether I somewhen get a stopped kwin + no resolution....

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to