Xinqi Bao's Git
projects
/
dwm.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d9c475d
)
applied resizecol fix by Jukka
author
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 09:00:55 +0000
(11:00 +0200)
committer
Anselm R. Garbe <
[email protected]
>
Thu, 5 Oct 2006 09:00:55 +0000
(11:00 +0200)
view.c
patch
|
blob
|
history
diff --git
a/view.c
b/view.c
index
7c56ac2
..
d37933a
100644
(file)
--- a/
view.c
+++ b/
view.c
@@
-259,6
+259,7
@@
isvisible(Client *c) {
void
resizecol(Arg *arg) {
void
resizecol(Arg *arg) {
+ int s;
unsigned int n;
Client *c;
unsigned int n;
Client *c;
@@
-268,13
+269,14
@@
resizecol(Arg *arg) {
if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
return;
if(!sel || sel->isfloat || n < 2 || (arrange == dofloat))
return;
+ s = stackpos == StackBottom ? sh - bh : sw;
if(sel == getnext(clients)) {
if(sel == getnext(clients)) {
- if(master + arg->i > s
w
- MINW || master + arg->i < MINW)
+ if(master + arg->i > s - MINW || master + arg->i < MINW)
return;
master += arg->i;
}
else {
return;
master += arg->i;
}
else {
- if(master - arg->i > s
w
- MINW || master - arg->i < MINW)
+ if(master - arg->i > s - MINW || master - arg->i < MINW)
return;
master -= arg->i;
}
return;
master -= arg->i;
}