diff options
author | okan | 2018-02-13 15:43:15 +0000 |
---|---|---|
committer | okan | 2018-02-13 15:43:15 +0000 |
commit | 84cef003d00150daf0bed9bc2938e0ded629fd26 (patch) | |
tree | b1cda0cad249b335a680d79f90dfa65994817871 /screen.c | |
parent | 20e112a60fd194d1dd6bb84361cb4eb96f13902c (diff) | |
download | cwm-84cef003d00150daf0bed9bc2938e0ded629fd26.tar.gz |
Store the screen's visual type and colormap.
Diffstat (limited to '')
-rw-r--r-- | screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |