commit 7dec894

Michael Forney  ·  2014-07-23 01:04:43 +0000 UTC
parent 5e3c41c
xwm: Print error code on error
1 files changed,  +4, -2
+4, -2
 1@@ -433,9 +433,11 @@ bool xwm_initialize(int fd)
 2                       0, 0, 1, 1, 0, XCB_WINDOW_CLASS_INPUT_ONLY,
 3                       XCB_COPY_FROM_PARENT, 0, NULL);
 4 
 5-    if (!xcb_ewmh_init_atoms_replies(&xwm.ewmh, ewmh_cookies, NULL))
 6+    xcb_ewmh_init_atoms_replies(&xwm.ewmh, ewmh_cookies, &error);
 7+
 8+    if (error)
 9     {
10-        ERROR("xwm: Failed to get EWMH atom replies\n");
11+        ERROR("xwm: Failed to get EWMH atom replies: %u\n", error->error_code);
12         goto error3;
13     }
14