fixed Monitor not found error msg

This commit is contained in:
Sascha Kruse 2011-09-11 17:37:58 +02:00
parent e4148a49d5
commit 5c22743d53

View File

@ -221,7 +221,7 @@ setup(void) {
#ifdef XINERAMA
if((info = XineramaQueryScreens(dc->dpy, &n))) {
if(screen >= n) {
fprintf(stderr, "Monitor %d not found\n", n);
fprintf(stderr, "Monitor %d not found\n", screen);
exit(EXIT_FAILURE);
}
screen_x = info[screen].x_org;