From 2c19c0b4944b6f277f063f33dfe075cc57e7f7c0 Mon Sep 17 00:00:00 2001 From: Stefan Westerfeld Date: Sun, 23 Jun 2019 19:05:23 +0200 Subject: Fix window embedding on Windows --- pugl/pugl_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1