]> Pileus Git - wmpus/commitdiff
Fix xinerama query
authorAndy Spencer <andy753421@gmail.com>
Fri, 8 May 2015 06:06:03 +0000 (06:06 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 18 Jan 2016 19:11:40 +0000 (19:11 +0000)
sys-xcb.c

index 7942776381f4e71532778be39c1ddf06f44cbf58..1e8cbb846b1877bf21861721d4d9f583f2c50717 100644 (file)
--- 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);