summaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-11-01 00:48:15 +0100
committerDavid Robillard <d@drobilla.net>2014-12-16 18:31:22 -0500
commit3d27fe91f5c25405df0d332f17a7c6fc97d7da27 (patch)
tree6cc51b46304e526fc86f4082eb387e003e3ca059 /pugl/pugl_x11.c
parent715d42eeb66c771628c21a60fbcf3893e1896101 (diff)
Add support for transient child windows.
No Windows support currently. Conflicts: pugl/pugl.h pugl/pugl_osx.m pugl/pugl_win.cpp pugl/pugl_x11.c
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index e3325cd..4bf1f65 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -226,6 +226,11 @@ puglCreateWindow(PuglView* view, const char* title)
XSetWMProtocols(impl->display, impl->win, &wmDelete, 1);
}
+ if (view->transient_parent) {
+ XSetTransientForHint(impl->display, impl->win,
+ (Window)(view->transient_parent));
+ }
+
XFree(vi);
return 0;