diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 10:10:08 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 10:10:08 +0200 |
| commit | d39d00057ce609e726b2769f953485dc4c7403cc (patch) | |
| tree | afbbc160ffd6453b371a088a873974da82aa2c57 /view.c | |
| parent | applied Sanders max_and_focus.patch (diff) | |
| download | dwm-d39d00057ce609e726b2769f953485dc4c7403cc.tar.gz dwm-d39d00057ce609e726b2769f953485dc4c7403cc.zip | |
reducing focus calls (sanders patch)
Diffstat (limited to '')
| -rw-r--r-- | view.c | 10 |
1 files changed, 4 insertions, 6 deletions
| @@ -68,9 +68,8 @@ dofloat(Arg *arg) | |||
| 68 | else | 68 | else |
| 69 | ban(c); | 69 | ban(c); |
| 70 | } | 70 | } |
| 71 | if(!(fc = sel) || !isvisible(fc)) | 71 | if(!sel || !isvisible(sel)) |
| 72 | fc = getnext(clients); | 72 | focus(getnext(clients)); |
| 73 | focus(fc); | ||
| 74 | restack(); | 73 | restack(); |
| 75 | } | 74 | } |
| 76 | 75 | ||
| @@ -131,9 +130,8 @@ dotile(Arg *arg) | |||
| 131 | else | 130 | else |
| 132 | ban(c); | 131 | ban(c); |
| 133 | } | 132 | } |
| 134 | if(!(fc = sel) || !isvisible(fc)) | 133 | if(!sel || !isvisible(sel)) |
| 135 | fc = getnext(clients); | 134 | focus(getnext(clients)); |
| 136 | focus(fc); | ||
| 137 | restack(); | 135 | restack(); |
| 138 | } | 136 | } |
| 139 | 137 | ||
