diff options
author | Stefan Westerfeld <stefan@space.twc.de> | 2019-06-23 19:05:23 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-06-27 19:42:16 +0200 |
commit | 2c19c0b4944b6f277f063f33dfe075cc57e7f7c0 (patch) | |
tree | 6503ee005726cb28016d7468e1eafd49d2da2990 | |
parent | 5d13701f3e8b7aa55bbaa347be30022f4da1c936 (diff) | |
download | pugl-2c19c0b4944b6f277f063f33dfe075cc57e7f7c0.tar.gz pugl-2c19c0b4944b6f277f063f33dfe075cc57e7f7c0.tar.bz2 pugl-2c19c0b4944b6f277f063f33dfe075cc57e7f7c0.zip |
Fix window embedding on Windows
-rw-r--r-- | pugl/pugl_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index b5c4e10..7f1a4f0 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -137,7 +137,7 @@ puglCreateWindow(PuglView* view, const char* title) return NULL; } - int winFlags = WS_POPUPWINDOW | WS_CAPTION; + int winFlags = view->parent ? WS_CHILD : WS_POPUPWINDOW | WS_CAPTION; if (view->hints.resizable) { winFlags |= WS_SIZEBOX; if (view->min_width || view->min_height) { |