diff options
| author | arg@suckless.org <unknown> | 2007-10-24 16:26:59 +0200 |
|---|---|---|
| committer | arg@suckless.org <unknown> | 2007-10-24 16:26:59 +0200 |
| commit | cdd6c3e820a360aaca1e8cd9c4b882bac1448261 (patch) | |
| tree | 06fb3a17ecc09a1f243d0169a1b9c7821edd8189 | |
| parent | some cleanup, removed ntags variable, defined NTAGS macro, simplified tag(), ... (diff) | |
| download | dwm-cdd6c3e820a360aaca1e8cd9c4b882bac1448261.tar.gz dwm-cdd6c3e820a360aaca1e8cd9c4b882bac1448261.zip | |
removed RESIZEHINTS and enhanced tile for fixed or aspect-ratio'ed clients
| -rw-r--r-- | config.def.h | 1 | ||||
| -rw-r--r-- | dwm.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index 1636dc6..e8ab532 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -24,7 +24,6 @@ Rule rules[] = { | |||
| 24 | /* layout(s) */ | 24 | /* layout(s) */ |
| 25 | #define ISTILE isarrange(tile) /* || isarrange(<custom>) */ | 25 | #define ISTILE isarrange(tile) /* || isarrange(<custom>) */ |
| 26 | #define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ | 26 | #define MWFACT 0.6 /* master width factor [0.1 .. 0.9] */ |
| 27 | #define RESIZEHINTS True /* False - respect size hints in tiled resizals */ | ||
| 28 | #define SNAP 32 /* snap pixel */ | 27 | #define SNAP 32 /* snap pixel */ |
| 29 | Layout layouts[] = { | 28 | Layout layouts[] = { |
| 30 | /* symbol function */ | 29 | /* symbol function */ |
| @@ -1595,7 +1595,9 @@ tile(void) { | |||
| 1595 | else | 1595 | else |
| 1596 | nh = th - 2 * c->border; | 1596 | nh = th - 2 * c->border; |
| 1597 | } | 1597 | } |
| 1598 | resize(c, nx, ny, nw, nh, RESIZEHINTS); | 1598 | resize(c, nx, ny, nw, nh, True); |
| 1599 | if((c->h < bh) || (c->h > nh)) /* client doesn't accept geometry */ | ||
| 1600 | resize(c, nx, ny, nw, nh, False); | ||
| 1599 | if(n > 1 && th != wah) | 1601 | if(n > 1 && th != wah) |
| 1600 | ny = c->y + c->h + 2 * c->border; | 1602 | ny = c->y + c->h + 2 * c->border; |
| 1601 | } | 1603 | } |
