Skip to content

Commit b65ad4f

Browse files
committed
Fix standalones under wayland with high-dpi
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 0bafe97 commit b65ad4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dgl/src/pugl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +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-
if (view->impl->win && !view->parent && !view->transientParent)
366+
// NOTE troublesome if used under wayland
367+
if (view->impl->win && !view->parent && !view->transientParent && std::getenv("WAYLAND_DISPLAY") == nullptr)
367368
{
368369
view->sizeHints[PUGL_DEFAULT_SIZE].width = view->sizeHints[PUGL_DEFAULT_SIZE].height = 0;
369370
}

0 commit comments

Comments
 (0)