Skip to content

Commit

Permalink
Fix invalid initial size for VST3 and CLAP X11 UIs
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Feb 10, 2024
1 parent 9bbb686 commit 7ce973b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dgl/src/pugl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ 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)
if (view->impl->win && !view->parent)
{
view->sizeHints[PUGL_DEFAULT_SIZE].width = view->sizeHints[PUGL_DEFAULT_SIZE].height = 0;
}
Expand Down
1 change: 1 addition & 0 deletions distrho/src/DistrhoUIVST3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ class UIVst3
{
DISTRHO_SAFE_ASSERT_RETURN(fView != nullptr,);
DISTRHO_SAFE_ASSERT_RETURN(fFrame != nullptr,);
DISTRHO_SAFE_ASSERT_RETURN(width != 0 && height != 0,);

#ifdef DISTRHO_OS_MAC
const double scaleFactor = fUI.getScaleFactor();
Expand Down

0 comments on commit 7ce973b

Please sign in to comment.