]> mj.ucw.cz Git - osdd.git/blobdiff - client.c
make release: Reorganized my directory structure
[osdd.git] / client.c
index 8b439f316462a16352fcf4c3bed54696b5290a08..331c201fab83e495f660fcb655091f2b529d3156 100644 (file)
--- a/client.c
+++ b/client.c
@@ -13,6 +13,7 @@
 #include <X11/Xatom.h>
 
 #undef DEBUG
+#include "util.h"
 #include "osd.h"
 
 static Display *dpy;
@@ -102,6 +103,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);