From 7d72d835097ea87d53b0e439ac759ef956ed0432 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 4 Aug 2019 11:02:04 +0200 Subject: Windows: Fix configured size of child views --- pugl/detail/win.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pugl') diff --git a/pugl/detail/win.c b/pugl/detail/win.c index 483ee43..486c5e3 100644 --- a/pugl/detail/win.c +++ b/pugl/detail/win.c @@ -407,6 +407,11 @@ handleConfigure(PuglView* view, PuglEvent* event) { RECT rect; GetClientRect(view->impl->hwnd, &rect); + MapWindowPoints(view->impl->hwnd, + view->parent ? (HWND)view->parent : HWND_DESKTOP, + (LPPOINT)&rect, + 2); + view->frame.x = rect.left; view->frame.y = rect.top; view->frame.width = rect.right - rect.left; -- cgit v1.2.1