aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorfalkTX <falktx@falktx.com>2021-05-25 10:45:25 +0100
committerDavid Robillard <d@drobilla.net>2021-05-25 09:42:20 -0400
commita5674908ca0832ef6f89fee49150c6743a09c0ef (patch)
tree444d64bb2db838ebc12a24d916abb027574d37eb /src
parentab80b4bfa717049da3d8fb21cd4560fced6f5baf (diff)
downloadpugl-a5674908ca0832ef6f89fee49150c6743a09c0ef.tar.gz
pugl-a5674908ca0832ef6f89fee49150c6743a09c0ef.tar.bz2
pugl-a5674908ca0832ef6f89fee49150c6743a09c0ef.zip
Windows: Make puglSetFrame() consistent with X11
Diffstat (limited to 'src')
-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;
}