dwm-meillo
diff tag.c @ 164:21071ae1fe68
made fullscreen apps working fine in floating mode (there is no sane way to make them work in tiled mode, thus I switch to floating mode if I run such kind of app), also fixed the xterm issue reported by Sander
author | arg@10ksloc.org |
---|---|
date | Wed, 02 Aug 2006 16:32:05 +0200 |
parents | 9bd8a1a50464 |
children | 1db04019684e |
line diff
1.1 --- a/tag.c Wed Aug 02 13:05:04 2006 +0200 1.2 +++ b/tag.c Wed Aug 02 16:32:05 2006 +0200 1.3 @@ -3,7 +3,6 @@ 1.4 * See LICENSE file for license details. 1.5 */ 1.6 #include "dwm.h" 1.7 - 1.8 #include <regex.h> 1.9 #include <stdio.h> 1.10 #include <string.h> 1.11 @@ -86,26 +85,26 @@ 1.12 if(n == 1) { 1.13 c->x = sx; 1.14 c->y = sy + bh; 1.15 - c->w = sw - 2 * c->border; 1.16 - c->h = sh - 2 * c->border - bh; 1.17 + c->w = sw - 2; 1.18 + c->h = sh - 2 - bh; 1.19 } 1.20 else if(i == 0) { 1.21 c->x = sx; 1.22 c->y = sy + bh; 1.23 - c->w = mw - 2 * c->border; 1.24 - c->h = sh - 2 * c->border - bh; 1.25 + c->w = mw - 2; 1.26 + c->h = sh - 2 - bh; 1.27 } 1.28 else if(h > bh) { 1.29 c->x = sx + mw; 1.30 c->y = sy + (i - 1) * h + bh; 1.31 - c->w = w - 2 * c->border; 1.32 - c->h = h - 2 * c->border; 1.33 + c->w = w - 2; 1.34 + c->h = h - 2; 1.35 } 1.36 else { /* fallback if h < bh */ 1.37 c->x = sx + mw; 1.38 c->y = sy + bh; 1.39 - c->w = w - 2 * c->border; 1.40 - c->h = sh - 2 * c->border - bh; 1.41 + c->w = w - 2; 1.42 + c->h = sh - 2 - bh; 1.43 } 1.44 resize(c, False, TopLeft); 1.45 i++;