X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=client.c;h=b55a630a813e24e66d0270a24f496cb943ecdc26;hb=c35777a78cc041672856c74cdaa478bc119c8c69;hp=8b439f316462a16352fcf4c3bed54696b5290a08;hpb=0ab80500fd3a7e262417c707022dffbcd8655ba6;p=osdd.git diff --git a/client.c b/client.c index 8b439f3..b55a630 100644 --- a/client.c +++ b/client.c @@ -102,6 +102,8 @@ osd_wait(int delay) poll(&pfd, 1, wait_until - now); if (pfd.revents & POLLIN) { + // We use the event loop only to detect that the X server has been shut down. + // In such cases, xlib raises an error and exits. XEvent ev; while (XPending(dpy)) XNextEvent(dpy, &ev);