add an error handler
[dana/dcompmgr.git] / dcompmgr.c
index 9126010..c024349 100644 (file)
@@ -68,7 +68,7 @@ main(int argc, char **argv)
         printf("event %d\n", ev->response_type);
 
         if (!ev->response_type) {
         printf("event %d\n", ev->response_type);
 
         if (!ev->response_type) {
-            /* XXX handle error */
+            error(conn, (xcb_generic_error_t*)ev);
             free(ev);
             continue;
         }
             free(ev);
             continue;
         }