From: Dana Jansens Date: Mon, 26 May 2003 16:49:24 +0000 (+0000) Subject: map windows when creating them X-Git-Tag: gl2~118 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=69e69f5af8ae2ea209b5dfed6e6b7cd5f067960d;p=dana%2Fopenbox.git map windows when creating them --- 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,