use select to tell when there are events to read
[dana/dcompmgr.git] / display.c
index 650ef46..a03e7ab 100644 (file)
--- a/display.c
+++ b/display.c
@@ -174,6 +174,7 @@ display_open(const char *name)
         dpy = malloc(sizeof(d_display_t));
         dpy->conn = conn;
         dpy->ref = 1;
+        dpy->fd = xcb_get_file_descriptor(conn);
         dpy->screens = NULL;
         dpy->nscreens = 0;