X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=873b7944487b4e14d28ad8c76cb98cab35fa2a08;hp=43f0fd51b2c7abedf4aff7f968de876f4ee781b7;hb=91fffb3f7d0cd731aa2a2126c411590d30231c19;hpb=c13be8d620372a55f5867cafd6ad4277ad77790c diff --git a/dwm.c b/dwm.c index 43f0fd5..873b794 100644 --- a/dwm.c +++ b/dwm.c @@ -1683,11 +1683,12 @@ updatebarpos(Monitor *m) { void updategeom(void) { - int i, n = 1, nn; + int i, n = 1; Client *c; Monitor *newmons = NULL, *m = NULL, *tm; #ifdef XINERAMA + int nn; XineramaScreenInfo *info = NULL; if(XineramaIsActive(dpy)) @@ -1696,7 +1697,7 @@ updategeom(void) { if(info[i - 1].x_org == info[i].x_org && info[i - 1].y_org == info[i].y_org && info[i - 1].width == info[i].width && info[i - 1].height == info[i].height) --nn; - n = nn; /* we only consider unique geometrys as separate screens */ + n = nn; /* we only consider unique geometries as separate screens */ #endif /* XINERAMA */ /* allocate monitor(s) for the new geometry setup */ for(i = 0; i < n; i++) {