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