Do an XSync before trying to claim the manager selection

I was getting weird crashes inside the QPA without it.
icc-effect-5.14.5
Martin Gräßlin 2013-08-02 08:29:15 +02:00
parent 53666c655c
commit 65f6db4312
1 changed files with 2 additions and 0 deletions

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