From: Andy Spencer Date: Fri, 8 May 2015 06:06:03 +0000 (+0000) Subject: Fix xinerama query X-Git-Url: http://pileus.org/git/?p=wmpus;a=commitdiff_plain;h=95088b9ea06543b0703887e5367c56b31c6d3104 Fix xinerama query --- diff --git a/sys-xcb.c b/sys-xcb.c index 7942776..1e8cbb8 100644 --- a/sys-xcb.c +++ b/sys-xcb.c @@ -1239,7 +1239,7 @@ list_t *sys_info(void) screen->w = info[i].width; screen->h = info[i].height; - screens = list_insert(NULL, screen); + screens = list_insert(screens, screen); printf("sys_info: xinerama screen - %dx%d @ %d,%d\n", screen->w, screen->h, @@ -1258,7 +1258,7 @@ list_t *sys_info(void) screen->w = geom->width_in_pixels; screen->h = geom->height_in_pixels; - screens = list_insert(NULL, screen); + screens = list_insert(screens, screen); printf("sys_info: root screen - %dx%d\n", screen->w, screen->h);