stash the default screen visual and colormap in screen_ctx

This commit is contained in:
okan
2012-12-17 18:34:06 +00:00
parent 82e8ec4245
commit af13c08108
4 changed files with 10 additions and 9 deletions

View File

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