aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorokan2018-02-13 15:43:15 +0000
committerokan2018-02-13 15:43:15 +0000
commit84cef003d00150daf0bed9bc2938e0ded629fd26 (patch)
treeb1cda0cad249b335a680d79f90dfa65994817871 /screen.c
parent20e112a60fd194d1dd6bb84361cb4eb96f13902c (diff)
downloadcwm-84cef003d00150daf0bed9bc2938e0ded629fd26.tar.gz
Store the screen's visual type and colormap.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 4cde1df..59249e6 100644
--- a/screen.c
+++ b/screen.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.
*
- * $OpenBSD: screen.c,v 1.87 2018/02/13 15:06:22 okan Exp $
+ * $OpenBSD: screen.c,v 1.88 2018/02/13 15:43:16 okan Exp $
*/
#include <sys/types.h>
@@ -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;