JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed nn declaration
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 43f0fd5..873b794 100644 (file)
--- 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++) {