From b65ad4f7e58294e7d92ee9719cedd2eb55d43716 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 26 Jan 2025 21:00:36 +0100 Subject: [PATCH] Fix standalones under wayland with high-dpi Signed-off-by: falkTX --- dgl/src/pugl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }