Store the screen's visual type and colormap.

This commit is contained in:
okan
2018-02-13 15:43:15 +00:00
parent 13763662c9
commit b1929b5ed6
3 changed files with 10 additions and 7 deletions

View File

@@ -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;