add an error handler
[dana/dcompmgr.git] / screen.c
index 5ffae1f..873e96f 100644 (file)
--- a/screen.c
+++ b/screen.c
@@ -1,4 +1,5 @@
 #include "screen.h"
+#include "error.h"
 #include "window.h"
 #include "gettext.h"
 #include <string.h>
@@ -147,7 +148,7 @@ screen_timestamp(d_screen_t *sc)
 
         /* expect errors.. */
         if (!ev->response_type) {
-            /* XXX handle error */
+            error(sc->conn, (xcb_generic_error_t*)ev);
             free(ev);
             continue;
         }