tfix if n < nmaster of remainer calculation for master windows - dwm - [fork] customized build of dwm, the dynamic window manager
(HTM) git clone git://src.adamsgaard.dk/dwm
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f3e672efd8d3efb05f7e7dc48fd87f3929c18932
(DIR) parent 02d5dddc003b2e5af86754bf13783c0cdf193262
(HTM) Author: Anselm R. Garbe <arg@suckless.org>
Date: Thu, 24 May 2007 16:25:09 +0200
fix if n < nmaster of remainer calculation for master windows
Diffstat:
M layout.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/layout.c b/layout.c
t@@ -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;
}