aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-15 14:33:09 +0100
committerDavid Robillard <d@drobilla.net>2020-03-15 14:33:09 +0100
commitfb3baa801e449baa3dcee879557d94304dcd0509 (patch)
tree87204783f44397acf68a18a5f2314b01ce6fb351
parente6a38b049573bb3ab3bdc90ddce678945ba555c9 (diff)
downloadpugl-fb3baa801e449baa3dcee879557d94304dcd0509.tar.gz
pugl-fb3baa801e449baa3dcee879557d94304dcd0509.tar.bz2
pugl-fb3baa801e449baa3dcee879557d94304dcd0509.zip
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.c4
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);