aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-09-01 22:22:16 -0400
committerDavid Robillard <d@drobilla.net>2016-09-01 22:22:16 -0400
commit33be0a19a206963f3c600484aea4d1b920b44fd1 (patch)
treebaabaa8cf993bd5320e7c4d09a9943e79c131b26 /pugl/pugl_x11.c
parent156d9f03f26b4dd85dc75f652fb370b07bc2dab7 (diff)
downloadpugl-33be0a19a206963f3c600484aea4d1b920b44fd1.tar.gz
pugl-33be0a19a206963f3c600484aea4d1b920b44fd1.tar.bz2
pugl-33be0a19a206963f3c600484aea4d1b920b44fd1.zip
Add puglGetVisible()
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 5cd4373..4d7010b 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -347,12 +347,14 @@ void
puglShowWindow(PuglView* view)
{
XMapRaised(view->impl->display, view->impl->win);
+ view->visible = true;
}
void
puglHideWindow(PuglView* view)
{
XUnmapWindow(view->impl->display, view->impl->win);
+ view->visible = false;
}
void