diff options
author | David Robillard <d@drobilla.net> | 2020-03-15 14:33:09 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-03-15 14:33:09 +0100 |
commit | fb3baa801e449baa3dcee879557d94304dcd0509 (patch) | |
tree | 87204783f44397acf68a18a5f2314b01ce6fb351 | |
parent | e6a38b049573bb3ab3bdc90ddce678945ba555c9 (diff) |
X11: Update frame immediately on ConfigureNotify
This fixes some jittery display issues since the frame can be used before the
deferred configure actually gets dispatched.
-rw-r--r-- | pugl/detail/x11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pugl/detail/x11.c b/pugl/detail/x11.c index fa23bf0..486e83b 100644 --- a/pugl/detail/x11.c +++ b/pugl/detail/x11.c @@ -797,6 +797,10 @@ puglDispatchEvents(PuglWorld* world) } else if (event.type == PUGL_CONFIGURE) { // Expand configure event to be dispatched after loop view->impl->pendingConfigure = event; + view->frame.x = event.configure.x; + view->frame.y = event.configure.y; + view->frame.width = event.configure.width; + view->frame.height = event.configure.height; } else { // Dispatch event to application immediately puglDispatchEvent(view, &event); |