aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/win.c3
1 files changed, 1 insertions, 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;
}