diff options
-rw-r--r-- | src/xcb_io.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xcb_io.c b/src/xcb_io.c index 193ee686..5f071849 100644 --- a/src/xcb_io.c +++ b/src/xcb_io.c @@ -282,9 +282,11 @@ XID _XAllocID(Display *dpy) XID ret = dpy->xcb->next_xid; dpy->xcb->next_xid = 0; - assert(!(dpy->flags & XlibDisplayPrivSync)); - dpy->savedsynchandler = dpy->synchandler; - dpy->flags |= XlibDisplayPrivSync; + if(!(dpy->flags & XlibDisplayPrivSync)) + { + dpy->savedsynchandler = dpy->synchandler; + dpy->flags |= XlibDisplayPrivSync; + } dpy->synchandler = _XIDHandler; return ret; } |