map windows when creating them
authorDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 16:49:24 +0000 (16:49 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 16:49:24 +0000 (16:49 +0000)
render2/surface.c

index b0063da57fa46fb080d17d02f87f45a066cfab0b..37f7a040dbf0845e6aeb404ec8dcc82052569093 100644 (file)
@@ -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,