diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 14:01:12 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-02-14 14:01:12 +0100 |
| commit | 3ce8c9f33844a995e79329978db9d2cd3981e032 (patch) | |
| tree | 58c918da4f17a1d81440cc97f6e031fd3938a58a /view.c | |
| parent | Added tag 3.5 for changeset 63ad05e7f9e1 (diff) | |
| download | dwm-3ce8c9f33844a995e79329978db9d2cd3981e032.tar.gz dwm-3ce8c9f33844a995e79329978db9d2cd3981e032.zip | |
added ban() which takes care than a banned window is not banned again... (this reduces the overall ConfigureNotify's to clients)
Diffstat (limited to '')
| -rw-r--r-- | view.c | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -55,10 +55,12 @@ dofloat(void) { | |||
| 55 | Client *c; | 55 | Client *c; |
| 56 | 56 | ||
| 57 | for(c = clients; c; c = c->next) { | 57 | for(c = clients; c; c = c->next) { |
| 58 | if(isvisible(c)) | 58 | if(isvisible(c)) { |
| 59 | c->isbanned = False; | ||
| 59 | resize(c, True); | 60 | resize(c, True); |
| 61 | } | ||
| 60 | else | 62 | else |
| 61 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); | 63 | ban(c); |
| 62 | } | 64 | } |
| 63 | if(!sel || !isvisible(sel)) { | 65 | if(!sel || !isvisible(sel)) { |
| 64 | for(c = stack; c && !isvisible(c); c = c->snext); | 66 | for(c = stack; c && !isvisible(c); c = c->snext); |
| @@ -82,6 +84,7 @@ dotile(void) { | |||
| 82 | 84 | ||
| 83 | for(i = 0, c = clients; c; c = c->next) | 85 | for(i = 0, c = clients; c; c = c->next) |
| 84 | if(isvisible(c)) { | 86 | if(isvisible(c)) { |
| 87 | c->isbanned = False; | ||
| 85 | if(c->isfloat) { | 88 | if(c->isfloat) { |
| 86 | resize(c, True); | 89 | resize(c, True); |
| 87 | continue; | 90 | continue; |
| @@ -108,7 +111,7 @@ dotile(void) { | |||
| 108 | i++; | 111 | i++; |
| 109 | } | 112 | } |
| 110 | else | 113 | else |
| 111 | XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); | 114 | ban(c); |
| 112 | if(!sel || !isvisible(sel)) { | 115 | if(!sel || !isvisible(sel)) { |
| 113 | for(c = stack; c && !isvisible(c); c = c->snext); | 116 | for(c = stack; c && !isvisible(c); c = c->snext); |
| 114 | focus(c); | 117 | focus(c); |
