diff options
author | David Robillard <d@drobilla.net> | 2013-03-18 19:49:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-18 19:49:48 +0000 |
commit | cea41bcb9be36fdfe9d273133996e1622586f27b (patch) | |
tree | e93871a5fc04ad3be78ed37a8d819d875919f68a /pugl/pugl_x11.c | |
parent | d5bfc40d6dd1834d28db9e0739a8286878e3d77a (diff) |
Addition of visible parameter and other minor fixes from FalkTX.
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 7 |
1 files changed, 5 insertions, 2 deletions
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"); |