aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2012-10-29 19:46:03 +0000
committerokan2012-10-29 19:46:03 +0000
commit5854a666c86986a568f60c94ce1fa0fe10104405 (patch)
tree7b8600def6232fd675008d53a0135c2ef93ca23b /conf.c
parent44d74976388a98e062b2b110006ffe26d27c69c6 (diff)
downloadcwm-5854a666c86986a568f60c94ce1fa0fe10104405.tar.gz
on reload, run each client through conf_client to pick up potential
ignore and bwidth changes; also add a hack for existing maximized windows so they don't inherit a new bwidth. based on a diff from, and discussion with, Tiago Cunha.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/conf.c b/conf.c
index 60e49ca..efe9054 100644
--- a/conf.c
+++ b/conf.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: conf.c,v 1.99 2012/05/13 15:15:54 okan Exp $
+ * $OpenBSD: conf.c,v 1.100 2012/10/29 19:46:03 okan Exp $
*/
#include <sys/param.h>
@@ -104,8 +104,13 @@ conf_reload(struct conf *c)
conf_font(c, sc);
menu_init(sc);
}
- TAILQ_FOREACH(cc, &Clientq, entry)
+ TAILQ_FOREACH(cc, &Clientq, entry) {
+ conf_client(cc);
+ /* XXX Does not take hmax/vmax into account. */
+ if ((cc->flags & CLIENT_MAXFLAGS) == CLIENT_MAXIMIZED)
+ cc->bwidth = 0;
client_draw_border(cc);
+ }
}
static struct {