From fb3baa801e449baa3dcee879557d94304dcd0509 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 Mar 2020 14:33:09 +0100 Subject: 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. --- pugl/detail/x11.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1