diff options
Diffstat (limited to 'pugl')
-rw-r--r-- | pugl/detail/win.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; |