about summary refs log tree commit diff
path: root/calmwm.c
diff options
context:
space:
mode:
authorokan <okan>2009-12-08 16:52:17 +0000
committerokan <okan>2009-12-08 16:52:17 +0000
commitee7df6a95f80bebc9ec2d8571c1ff8ff2f53cfd0 (patch)
tree72d45dd2b4f7a08e9fa71bd138354cd9741f33b5 /calmwm.c
parentaa88d5848e0b3ee3ea7c64c7582eddd963dcecb2 (diff)
downloadcwm-ee7df6a95f80bebc9ec2d8571c1ff8ff2f53cfd0.tar.gz
cwm-ee7df6a95f80bebc9ec2d8571c1ff8ff2f53cfd0.tar.xz
cwm-ee7df6a95f80bebc9ec2d8571c1ff8ff2f53cfd0.zip
start fixing screen_ctx usage, for it is utterly broken. bring font
into screen_ctx and start passing screen_ctx around to in order get rid
of Curscreen; fixup per-screen config colors the same way.

diff mostly from oga@, with a bit harsher reaction to the state of screen_ctx.

"please commit" oga@
Diffstat (limited to 'calmwm.c')
-rw-r--r--calmwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/calmwm.c b/calmwm.c
index 37fa473..8cc62d5 100644
--- a/calmwm.c
+++ b/calmwm.c
@@ -156,10 +156,10 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
 	sc->xmax = DisplayWidth(X_Dpy, sc->which);
 	sc->ymax = DisplayHeight(X_Dpy, sc->which);
 
-	conf_color(&Conf);
+	conf_color(&Conf, sc);
 
 	font_init(sc);
-	conf_font(&Conf);
+	conf_font(&Conf, sc);
 
 	TAILQ_INIT(&sc->mruq);