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:
parent
53666c655c
commit
65f6db4312
1 changed files with 2 additions and 0 deletions
2
main.cpp
2
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue