1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

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

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