From 65f6db4312694e62e4bca614406f11717cd597cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 2 Aug 2013 08:29:15 +0200 Subject: [PATCH] Do an XSync before trying to claim the manager selection I was getting weird crashes inside the QPA without it. --- main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cpp b/main.cpp index 5757128ba7..849440ac55 100644 --- a/main.cpp +++ b/main.cpp @@ -284,6 +284,8 @@ Application::Application() strcpy(e.xclient.data.b, "wm"); XSendEvent(display(), rootWindow(), False, SubstructureNotifyMask, &e); }); + // we need to do an XSync here, otherwise the QPA might crash us later on + Xcb::sync(); owner.claim(args->isSet("replace"), true); }