about summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authorokan <okan>2012-12-17 18:34:06 +0000
committerokan <okan>2012-12-17 18:34:06 +0000
commitaf13c081080574a036565e2fa7c761b6e6233068 (patch)
tree4611b48a70693b368c7f843d991ed1ea38432609 /screen.c
parent82e8ec4245f44bd10c0fc5ed27640dafbb7beb44 (diff)
downloadcwm-af13c081080574a036565e2fa7c761b6e6233068.tar.gz
cwm-af13c081080574a036565e2fa7c761b6e6233068.tar.xz
cwm-af13c081080574a036565e2fa7c761b6e6233068.zip
stash the default screen visual and colormap in screen_ctx
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/screen.c b/screen.c
index a515adb..9515d91 100644
--- a/screen.c
+++ b/screen.c
@@ -41,6 +41,8 @@ screen_init(struct screen_ctx *sc, u_int which)
 	u_int			 nwins, i;
 
 	sc->which = which;
+	sc->visual = DefaultVisual(X_Dpy, sc->which);
+	sc->colormap = DefaultColormap(X_Dpy, sc->which);
 	sc->rootwin = RootWindow(X_Dpy, sc->which);
 
 	xu_ewmh_net_supported(sc);