From 69e69f5af8ae2ea209b5dfed6e6b7cd5f067960d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 26 May 2003 16:49:24 +0000 Subject: [PATCH] map windows when creating them --- render2/surface.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/render2/surface.c b/render2/surface.c index b0063da5..37f7a040 100644 --- a/render2/surface.c +++ b/render2/surface.c @@ -23,9 +23,11 @@ static struct RrSurface *surface_new(enum RrSurfaceType type, static Window create_window(struct RrInstance *inst, Window parent) { - return XCreateWindow(RrDisplay(inst), parent, 0, 0, 1, 1, 0, - RrDepth(inst), InputOutput, RrVisual(inst), - 0, NULL); + Window win = XCreateWindow(RrDisplay(inst), parent, 0, 0, 1, 1, 0, + RrDepth(inst), InputOutput, RrVisual(inst), + 0, NULL); + XMapWindow(RrDisplay(inst), win); + return win; } struct RrSurface *RrSurfaceNewProto(enum RrSurfaceType type, -- 2.34.1