Skip to content

Commit

Permalink
Fix standalones under wayland with high-dpi
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Jan 26, 2025
1 parent 0bafe97 commit b65ad4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dgl/src/pugl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b65ad4f

Please sign in to comment.