Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
6de149e
)
applied jukkas patch
author
arg@mmvi <unknown>
Fri, 22 Sep 2006 13:39:38 +0000
(15:39 +0200)
committer
arg@mmvi <unknown>
Fri, 22 Sep 2006 13:39:38 +0000
(15:39 +0200)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index
682e331
..
c5e942d
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-102,14
+102,8
@@
dotile(Arg *arg) {
w = sw - mw;
for(n = 0, c = clients; c; c = c->next)
w = sw - mw;
for(n = 0, c = clients; c; c = c->next)
- if(isvisible(c)) {
- if(c->isfloat) {
- if(c->ismax)
- togglemax(c);
- }
- else
- n++;
- }
+ if(isvisible(c) && !c->isfloat)
+ n++;
if(n > 1)
h = (sh - bh) / (n - 1);
if(n > 1)
h = (sh - bh) / (n - 1);
@@
-118,6
+112,8
@@
dotile(Arg *arg) {
for(i = 0, c = clients; c; c = c->next) {
if(isvisible(c)) {
for(i = 0, c = clients; c; c = c->next) {
if(isvisible(c)) {
+ if(c->ismax)
+ togglemax(c);
if(c->isfloat) {
resize(c, True, TopLeft);
continue;
if(c->isfloat) {
resize(c, True, TopLeft);
continue;