aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/x11.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/x11.c b/src/x11.c
index 419cd54..217838f 100644
--- a/src/x11.c
+++ b/src/x11.c
@@ -416,8 +416,9 @@ updateSizeHints(const PuglView* const view)
sizeHints.max_width = (int)frame.width;
sizeHints.max_height = (int)frame.height;
} else {
+ // Avoid setting PBaseSize for top level views to avoid window manager bugs
const PuglViewSize defaultSize = view->sizeHints[PUGL_DEFAULT_SIZE];
- if (puglIsValidSize(defaultSize)) {
+ if (puglIsValidSize(defaultSize) && view->parent) {
sizeHints.flags |= PBaseSize;
sizeHints.base_width = defaultSize.width;
sizeHints.base_height = defaultSize.height;