Skip to content

Commit

Permalink
Replace wayland env var workaround with KDE one
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 8, 2025
1 parent 34435e0 commit e952d46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dgl/src/pugl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e952d46

Please sign in to comment.