diff options
author | Robin Gareus <robin@gareus.org> | 2014-11-01 00:48:15 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 18:31:22 -0500 |
commit | 3d27fe91f5c25405df0d332f17a7c6fc97d7da27 (patch) | |
tree | 6cc51b46304e526fc86f4082eb387e003e3ca059 /pugl/pugl_internal.h | |
parent | 715d42eeb66c771628c21a60fbcf3893e1896101 (diff) | |
download | pugl-3d27fe91f5c25405df0d332f17a7c6fc97d7da27.tar.gz pugl-3d27fe91f5c25405df0d332f17a7c6fc97d7da27.tar.bz2 pugl-3d27fe91f5c25405df0d332f17a7c6fc97d7da27.zip |
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_internal.h')
-rw-r--r-- | pugl/pugl_internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h index 8a193d6..5b2b1c7 100644 --- a/pugl/pugl_internal.h +++ b/pugl/pugl_internal.h @@ -49,6 +49,7 @@ struct PuglViewImpl { PuglNativeWindow parent; PuglContextType ctx_type; + uintptr_t transient_parent; int width; int height; @@ -111,6 +112,12 @@ puglInitResizable(PuglView* view, bool resizable) } void +puglInitTransientFor(PuglView* view, uintptr_t parent) +{ + view->transient_parent = parent; +} + +void puglInitContextType(PuglView* view, PuglContextType type) { view->ctx_type = type; |