From cea41bcb9be36fdfe9d273133996e1622586f27b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Mar 2013 19:49:48 +0000 Subject: Addition of visible parameter and other minor fixes from FalkTX. --- pugl/pugl_x11.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pugl/pugl_x11.c') diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index fd61632..d9fccf2 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -70,7 +70,8 @@ puglCreate(PuglNativeWindow parent, const char* title, int width, int height, - bool resizable) + bool resizable, + bool visible) { PuglView* view = (PuglView*)calloc(1, sizeof(PuglView)); PuglInternals* impl = (PuglInternals*)calloc(1, sizeof(PuglInternals)); @@ -142,7 +143,9 @@ puglCreate(PuglNativeWindow parent, XSetWMProtocols(impl->display, impl->win, &wmDelete, 1); } - XMapRaised(impl->display, impl->win); + if (visible) { + XMapRaised(impl->display, impl->win); + } if (glXIsDirect(impl->display, impl->ctx)) { printf("DRI enabled\n"); -- cgit v1.2.3