diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp index 4acb5334..557f046d 100644 --- a/dgl/src/pugl.cpp +++ b/dgl/src/pugl.cpp @@ -363,7 +363,8 @@ PuglStatus puglSetSizeAndDefault(PuglView* view, uint width, uint height) #ifdef DGL_USING_X11 // workaround issues in fluxbox, see https://github.com/lv2/pugl/issues/118 - if (view->impl->win && !view->parent && !view->transientParent) + // NOTE troublesome if used under wayland + if (view->impl->win && !view->parent && !view->transientParent && std::getenv("WAYLAND_DISPLAY") == nullptr) { view->sizeHints[PUGL_DEFAULT_SIZE].width = view->sizeHints[PUGL_DEFAULT_SIZE].height = 0; }