fix get_xinerama_outputs: don't use global num_screens here

This commit is contained in:
John Vogel 2013-12-15 20:04:46 -05:00
parent 72f21a85a7
commit 30c9883428
1 changed files with 1 additions and 1 deletions

2
bar.c
View File

@ -380,7 +380,7 @@ get_xinerama_outputs(xcb_window_t w, screen_t **spp)
if (ret == NULL)
exit (1);
for (int i = num_screens-1; i >= 0; i--) {
for (int i = num; i >= 0; i--) {
ret[i].x = xs_info[i].x_org;
ret[i].width = xs_info[i].width;
}