From e952d46e897088210a8de66732896ebe518e6d07 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 8 Feb 2025 18:05:44 +0100 Subject: [PATCH] Replace wayland env var workaround with KDE one Signed-off-by: falkTX --- dgl/src/pugl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dgl/src/pugl.cpp b/dgl/src/pugl.cpp index 557f046d..e67563af 100644 --- a/dgl/src/pugl.cpp +++ b/dgl/src/pugl.cpp @@ -363,8 +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 - // NOTE troublesome if used under wayland - if (view->impl->win && !view->parent && !view->transientParent && std::getenv("WAYLAND_DISPLAY") == nullptr) + // NOTE troublesome if used under KDE + if (view->impl->win && !view->parent && !view->transientParent && std::getenv("KDE_SESSION_VERSION") == nullptr) { view->sizeHints[PUGL_DEFAULT_SIZE].width = view->sizeHints[PUGL_DEFAULT_SIZE].height = 0; }