aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-08 13:42:27 -0400
committerDavid Robillard <d@drobilla.net>2021-05-08 13:42:27 -0400
commit17ad5fd72bd51c5324b8e52e1f55020d5a97944a (patch)
treee4f2be67baee06ed26ae323a2452188980e8dbdc
parent44ac442eb14a0cef9c51f2654b87f56afc17ff2a (diff)
downloadpugl-17ad5fd72bd51c5324b8e52e1f55020d5a97944a.tar.gz
pugl-17ad5fd72bd51c5324b8e52e1f55020d5a97944a.tar.bz2
pugl-17ad5fd72bd51c5324b8e52e1f55020d5a97944a.zip
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.
-rw-r--r--src/x11.c2
1 files changed, 1 insertions, 1 deletions
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);