fixed Monitor not found error msg
This commit is contained in:
parent
e4148a49d5
commit
5c22743d53
2
dunst.c
2
dunst.c
@ -221,7 +221,7 @@ setup(void) {
|
|||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if((info = XineramaQueryScreens(dc->dpy, &n))) {
|
if((info = XineramaQueryScreens(dc->dpy, &n))) {
|
||||||
if(screen >= n) {
|
if(screen >= n) {
|
||||||
fprintf(stderr, "Monitor %d not found\n", n);
|
fprintf(stderr, "Monitor %d not found\n", screen);
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
screen_x = info[screen].x_org;
|
screen_x = info[screen].x_org;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user