From 17ad5fd72bd51c5324b8e52e1f55020d5a97944a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 May 2021 13:42:27 -0400 Subject: X11: Always send an initial configure before map I think the conditional here was because this is typical when the view is embedded, but window manager behaviour is all over the place and this is something we want to always guarantee. --- src/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/x11.c b/src/x11.c index 4c4bb42..559c05b 100644 --- a/src/x11.c +++ b/src/x11.c @@ -1087,7 +1087,7 @@ dispatchX11Events(PuglWorld* const world) } else if (event.type == PUGL_CONFIGURE) { // Update configure event to be dispatched after loop view->impl->pendingConfigure = event; - } else if (event.type == PUGL_MAP && view->parent) { + } else if (event.type == PUGL_MAP) { // Get initial window position and size XWindowAttributes attrs; XGetWindowAttributes(view->impl->display, view->impl->win, &attrs); -- cgit v1.2.1