Skip to content

Commit e952d46

Browse files
committed
Replace wayland env var workaround with KDE one
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 34435e0 commit e952d46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dgl/src/pugl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@ PuglStatus puglSetSizeAndDefault(PuglView* view, uint width, uint height)
363363

364364
#ifdef DGL_USING_X11
365365
// workaround issues in fluxbox, see https://github.com/lv2/pugl/issues/118
366-
// NOTE troublesome if used under wayland
367-
if (view->impl->win && !view->parent && !view->transientParent && std::getenv("WAYLAND_DISPLAY") == nullptr)
366+
// NOTE troublesome if used under KDE
367+
if (view->impl->win && !view->parent && !view->transientParent && std::getenv("KDE_SESSION_VERSION") == nullptr)
368368
{
369369
view->sizeHints[PUGL_DEFAULT_SIZE].width = view->sizeHints[PUGL_DEFAULT_SIZE].height = 0;
370370
}

0 commit comments

Comments
 (0)