diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2010-01-27 03:04:51 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2010-01-27 03:04:51 +0000 |
commit | a767edae81058fe4d0bee72897214ece055b4560 (patch) | |
tree | 92bed677700ec39c9b6ad6d3f8b93f7e910ca534 /app/cwm/conf.c | |
parent | eef7d353d6bda90a2ef480499f2a3cdf3d009921 (diff) |
- allow per-screen gap; not (yet) user configurable.
- teach _NET_WORKAREA about gap.
ok oga@
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r-- | app/cwm/conf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 6b3ed5464..7272eb86e 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.75 2009/12/15 04:10:42 okan Exp $ + * $Id: conf.c,v 1.76 2010/01/27 03:04:50 okan Exp $ */ #include <sys/param.h> @@ -61,6 +61,12 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags) } void +conf_gap(struct conf *c, struct screen_ctx *sc) +{ + sc->gap = c->gap; +} + +void conf_font(struct conf *c, struct screen_ctx *sc) { sc->font = font_make(sc, c->DefaultFontName); @@ -92,6 +98,7 @@ conf_reload(struct conf *c) TAILQ_FOREACH(cc, &Clientq, entry) client_draw_border(cc); TAILQ_FOREACH(sc, &Screenq, entry) { + conf_gap(c, sc); conf_color(c, sc); conf_font(c, sc); } |