XCBify X{Ung,G}abServer

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2018-10-03 13:52:52 +02:00 committed by Yuxuan Shui
parent 3c5d7555a4
commit b86190452c
1 changed files with 3 additions and 3 deletions

View File

@ -5389,7 +5389,7 @@ session_init(session_t *ps_old, int argc, char **argv) {
ev_set_priority(&ps->event_check->w, EV_MINPRI);
ev_prepare_start(ps->loop, &ps->event_check->w);
XGrabServer(ps->dpy);
xcb_grab_server(c);
{
Window root_return, parent_return;
@ -5410,8 +5410,8 @@ session_init(session_t *ps_old, int argc, char **argv) {
recheck_focus(ps);
}
XUngrabServer(ps->dpy);
// ALWAYS flush after XUngrabServer()!
xcb_ungrab_server(c);
// ALWAYS flush after xcb_ungrab_server()!
XFlush(ps->dpy);
// Initialize DBus