diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 09:02:37 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 09:02:37 +0200 |
| commit | 6499fc4f938eb7e61ab3e25df3904db9c890c693 (patch) | |
| tree | bbe84ad7310956ec3de01e86145905af7658e3b2 /view.c | |
| parent | don't access sel in restack without checking for NULL (multihead crashing bug) (diff) | |
| download | dwm-6499fc4f938eb7e61ab3e25df3904db9c890c693.tar.gz dwm-6499fc4f938eb7e61ab3e25df3904db9c890c693.zip | |
I really need column growing, now pushing upstream
Diffstat (limited to 'view.c')
| -rw-r--r-- | view.c | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -169,6 +169,24 @@ focusprev(Arg *arg) | |||
| 169 | } | 169 | } |
| 170 | } | 170 | } |
| 171 | 171 | ||
| 172 | void | ||
| 173 | growcol(Arg *arg) | ||
| 174 | { | ||
| 175 | if(!sel || (arrange != dotile)) | ||
| 176 | return; | ||
| 177 | if(sel == getnext(clients)) { | ||
| 178 | if(mw + arg->i > sw - 100) | ||
| 179 | return; | ||
| 180 | mw += arg->i; | ||
| 181 | } | ||
| 182 | else { | ||
| 183 | if(mw - arg->i < 100) | ||
| 184 | return; | ||
| 185 | mw -= arg->i; | ||
| 186 | } | ||
| 187 | arrange(NULL); | ||
| 188 | } | ||
| 189 | |||
| 172 | Bool | 190 | Bool |
| 173 | isvisible(Client *c) | 191 | isvisible(Client *c) |
| 174 | { | 192 | { |
