Skip to content

Commit d9fe113

Browse files
committed
Add minimum X11 window size hint to juce module gui_basics
1 parent ced7792 commit d9fe113

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1637,6 +1637,12 @@ class LinuxComponentPeer : public ComponentPeer
16371637
hints->min_height = hints->max_height = hints->height;
16381638
hints->flags |= PMinSize | PMaxSize;
16391639
}
1640+
else
1641+
{
1642+
hints->min_width = 484;
1643+
hints->min_height = 437;
1644+
hints->flags |= PMinSize;
1645+
}
16401646

16411647
XSetWMNormalHints (display, windowH, hints);
16421648
XFree (hints);

0 commit comments

Comments
 (0)