Xinqi Bao's Git

code update for patch fibonacci
authorXinqi Bao <[email protected]>
Mon, 4 Apr 2022 14:49:10 +0000 (22:49 +0800)
committerXinqi Bao <[email protected]>
Mon, 4 Apr 2022 14:49:10 +0000 (22:49 +0800)
fibonacci.c

index fce0a57..da16c2b 100644 (file)
@@ -51,7 +51,12 @@ fibonacci(Monitor *mon, int s) {
                                nw = mon->ww - nw;
                        i++;
                }
-               resize(c, nx, ny, nw - 2 * c->bw, nh - 2 * c->bw, False);
+               resize(c,
+                nx + mon->gappx,
+                ny + mon->gappx,
+                nw - 2 * c->bw - 2 * mon->gappx,
+                nh - 2 * c->bw - 2 * mon->gappx,
+                False);
        }
 }