[hackers] [dwm] fix if n < nmaster of remainer calculation for master windows

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Thu May 24 16:25:18 2007

changeset: 901:8f6f61e07567
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Thu May 24 16:25:09 2007 +0200
summary: fix if n < nmaster of remainer calculation for master windows

diff -r 6e96de9aa6a1 -r 8f6f61e07567 layout.c
--- a/layout.c Thu May 24 15:55:28 2007 +0200
+++ b/layout.c Thu May 24 16:25:09 2007 +0200
@@ -40,7 +40,7 @@ tile(void) {
                                 ny += i * mh;
                                 nw = mw - 2 * c->border;
                                 nh = mh;
- if(i + 1 == nmaster) /* remainder */
+ if(i + 1 == (n < nmaster ? n : nmaster)) /* remainder */
                                         nh = wah - mh * i;
                                 nh -= 2 * c->border;
                         }
Received on Thu May 24 2007 - 16:25:18 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:49 UTC