diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2009-05-17 23:54:18 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2009-05-17 23:54:18 +0000 |
commit | 92215d13e6e329d28e9b2014daf1058dde17d9ba (patch) | |
tree | 271fdb23f6acb652b74a5ef926abfdb522c4b20d | |
parent | 49c64852885aadb1bd54f8e5d2a1961363db7461 (diff) |
redraw all borders at once on reload
"sure" oga@
-rw-r--r-- | app/cwm/conf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 4c17b0668..6ef0fc059 100644 --- a/app/cwm/conf.c +++ b/app/cwm/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. * - * $Id: conf.c,v 1.61 2009/05/17 23:40:57 okan Exp $ + * $Id: conf.c,v 1.62 2009/05/17 23:54:17 okan Exp $ */ #include "headers.h" @@ -79,12 +79,16 @@ conf_color(struct conf *c) void conf_reload(struct conf *c) { + struct client_ctx *cc; + if (parse_config(c->conf_path, c) == -1) { warnx("config file %s has errors, not reloading", c->conf_path); return; } conf_color(c); + TAILQ_FOREACH(cc, &Clientq, entry) + client_draw_border(cc); conf_font(c); } |