From: Reginald Kennedy Date: Thu, 26 Jul 2012 15:26:36 +0000 (+0800) Subject: Add variable for debug purposes. X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=ac57a15638eed3753b39e4f5c934e0a3f67ba7c3;p=spectrwm.git Add variable for debug purposes. --- diff --git a/spectrwm.c b/spectrwm.c index 17e2912..0e70061 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -758,9 +758,11 @@ parse_rgb(const char *rgb, uint16_t *rr, uint16_t *gg, uint16_t *bb) xcb_screen_t * get_screen(int screen) { + const xcb_setup_t *r; xcb_screen_iterator_t iter; - iter = xcb_setup_roots_iterator(xcb_get_setup(conn)); + r = xcb_get_setup(conn); + iter = xcb_setup_roots_iterator(r); for (; iter.rem; --screen, xcb_screen_next(&iter)) if (screen == 0) return (iter.data);