diff options
| author | arg@10ksloc.org <unknown> | 2006-08-02 16:32:05 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-02 16:32:05 +0200 |
| commit | 95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6 (patch) | |
| tree | 98283068f4576b8b2e825dd5eff0eb6e94ddbdc0 /tag.c | |
| parent | new stuff (diff) | |
| download | dwm-95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6.tar.gz dwm-95e8d12b7189d4cd01b8ae8ecebfa5835a1809e6.zip | |
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
Diffstat (limited to '')
| -rw-r--r-- | tag.c | 17 |
1 files changed, 8 insertions, 9 deletions
| @@ -3,7 +3,6 @@ | |||
| 3 | * See LICENSE file for license details. | 3 | * See LICENSE file for license details. |
| 4 | */ | 4 | */ |
| 5 | #include "dwm.h" | 5 | #include "dwm.h" |
| 6 | |||
| 7 | #include <regex.h> | 6 | #include <regex.h> |
| 8 | #include <stdio.h> | 7 | #include <stdio.h> |
| 9 | #include <string.h> | 8 | #include <string.h> |
| @@ -86,26 +85,26 @@ dotile(Arg *arg) | |||
| 86 | if(n == 1) { | 85 | if(n == 1) { |
| 87 | c->x = sx; | 86 | c->x = sx; |
| 88 | c->y = sy + bh; | 87 | c->y = sy + bh; |
| 89 | c->w = sw - 2 * c->border; | 88 | c->w = sw - 2; |
| 90 | c->h = sh - 2 * c->border - bh; | 89 | c->h = sh - 2 - bh; |
| 91 | } | 90 | } |
| 92 | else if(i == 0) { | 91 | else if(i == 0) { |
| 93 | c->x = sx; | 92 | c->x = sx; |
| 94 | c->y = sy + bh; | 93 | c->y = sy + bh; |
| 95 | c->w = mw - 2 * c->border; | 94 | c->w = mw - 2; |
| 96 | c->h = sh - 2 * c->border - bh; | 95 | c->h = sh - 2 - bh; |
| 97 | } | 96 | } |
| 98 | else if(h > bh) { | 97 | else if(h > bh) { |
| 99 | c->x = sx + mw; | 98 | c->x = sx + mw; |
| 100 | c->y = sy + (i - 1) * h + bh; | 99 | c->y = sy + (i - 1) * h + bh; |
| 101 | c->w = w - 2 * c->border; | 100 | c->w = w - 2; |
| 102 | c->h = h - 2 * c->border; | 101 | c->h = h - 2; |
| 103 | } | 102 | } |
| 104 | else { /* fallback if h < bh */ | 103 | else { /* fallback if h < bh */ |
| 105 | c->x = sx + mw; | 104 | c->x = sx + mw; |
| 106 | c->y = sy + bh; | 105 | c->y = sy + bh; |
| 107 | c->w = w - 2 * c->border; | 106 | c->w = w - 2; |
| 108 | c->h = sh - 2 * c->border - bh; | 107 | c->h = sh - 2 - bh; |
| 109 | } | 108 | } |
| 110 | resize(c, False, TopLeft); | 109 | resize(c, False, TopLeft); |
| 111 | i++; | 110 | i++; |
