swc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/swc
Log | Files | Refs | README | LICENSE

commit 7dec8940ff01f49be25bf8eb95bc1dc50cf966cf
parent 5e3c41c8737ebf432a2ae9c820b8ae0dc631cf69
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 22 Jul 2014 18:04:43 -0700

xwm: Print error code on error

Diffstat:
Mlibswc/xwm.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/libswc/xwm.c b/libswc/xwm.c @@ -433,9 +433,11 @@ bool xwm_initialize(int fd) 0, 0, 1, 1, 0, XCB_WINDOW_CLASS_INPUT_ONLY, XCB_COPY_FROM_PARENT, 0, NULL); - if (!xcb_ewmh_init_atoms_replies(&xwm.ewmh, ewmh_cookies, NULL)) + xcb_ewmh_init_atoms_replies(&xwm.ewmh, ewmh_cookies, &error); + + if (error) { - ERROR("xwm: Failed to get EWMH atom replies\n"); + ERROR("xwm: Failed to get EWMH atom replies: %u\n", error->error_code); goto error3; }