From a5674908ca0832ef6f89fee49150c6743a09c0ef Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 25 May 2021 10:45:25 +0100 Subject: Windows: Make puglSetFrame() consistent with X11 --- src/win.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/win.c b/src/win.c index e48972a..cb97cdd 100644 --- a/src/win.c +++ b/src/win.c @@ -975,8 +975,6 @@ puglSetWindowTitle(PuglView* view, const char* title) PuglStatus puglSetFrame(PuglView* view, const PuglRect frame) { - view->frame = frame; - if (view->impl->hwnd) { RECT rect = {(long)frame.x, (long)frame.y, @@ -997,6 +995,7 @@ puglSetFrame(PuglView* view, const PuglRect frame) } } + view->frame = frame; return PUGL_SUCCESS; } -- cgit v1.2.1