Do an XSync before trying to claim the manager selection

I was getting weird crashes inside the QPA without it.
This commit is contained in:
Martin Gräßlin 2013-08-02 08:29:15 +02:00
parent 53666c655c
commit 65f6db4312

View file

@ -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);
}