summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authorokan <okan>2018-02-13 15:43:15 +0000
committerokan <okan>2018-02-13 15:43:15 +0000
commitb1929b5ed6a33fa6d031912c9963ab5e113f81ea (patch)
treeb31ec8215f1a35d9486d1a76551e5d3de312c38f /screen.c
parent13763662c9ba3c0fed9732b14fb81a63235a1f26 (diff)
downloadcwm-b1929b5ed6a33fa6d031912c9963ab5e113f81ea.tar.gz
cwm-b1929b5ed6a33fa6d031912c9963ab5e113f81ea.tar.xz
cwm-b1929b5ed6a33fa6d031912c9963ab5e113f81ea.zip
Store the screen's visual type and colormap.
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 8d05f25..845a323 100644
--- a/screen.c
+++ b/screen.c
@@ -50,6 +50,8 @@ screen_init(int which)
 
 	sc->which = which;
 	sc->rootwin = RootWindow(X_Dpy, sc->which);
+	sc->colormap = DefaultColormap(X_Dpy, sc->which);
+	sc->visual = DefaultVisual(X_Dpy, sc->which);
 	sc->cycling = 0;
 	sc->hideall = 0;