diff options
author | David Robillard <d@drobilla.net> | 2019-08-04 19:51:49 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-09-03 08:34:39 +0200 |
commit | 075c5c5927e511dd03d9608a285ed58ef395120b (patch) | |
tree | aadda860de0eecc07ef331cb94e9900068be200d /pugl/detail/x11.c | |
parent | e7ccbec8f5f0097ca54b8d7ea27e0815b069b57c (diff) | |
download | pugl-075c5c5927e511dd03d9608a285ed58ef395120b.tar.gz pugl-075c5c5927e511dd03d9608a285ed58ef395120b.tar.bz2 pugl-075c5c5927e511dd03d9608a285ed58ef395120b.zip |
Replace puglInitTransientFor() with puglSetTransientFor()
Diffstat (limited to 'pugl/detail/x11.c')
-rw-r--r-- | pugl/detail/x11.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index d7b7677..ea8367c 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -761,3 +761,16 @@ puglSetAspectRatio(PuglView* const view, return PUGL_SUCCESS; } + +void +puglSetTransientFor(PuglView* view, PuglNativeWindow parent) +{ + Display* display = view->world->impl->display; + + view->transientParent = parent; + + if (view->impl->win) { + XSetTransientForHint(display, view->impl->win, + (Window)view->transientParent); + } +} |