From b803e99634ca48acb240a6e5a67ab768a72159bc Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 2 Feb 2014 16:29:04 +0000 Subject: No need to store screen colormap and visual; rather just use the X macros in the one place they are needed. --- screen.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'screen.c') diff --git a/screen.c b/screen.c index 26249d3..37cb5c3 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.56 2014/02/02 16:13:50 okan Exp $ + * $OpenBSD: screen.c,v 1.57 2014/02/02 16:29:04 okan Exp $ */ #include @@ -44,8 +44,6 @@ screen_init(int which) TAILQ_INIT(&sc->mruq); sc->which = which; - sc->visual = DefaultVisual(X_Dpy, sc->which); - sc->colormap = DefaultColormap(X_Dpy, sc->which); sc->rootwin = RootWindow(X_Dpy, sc->which); conf_screen(sc); -- cgit v1.2.3-2-gb3c3