Skip to content

Commit 6b17bd9

Browse files
authored
Merge pull request #179 from kmichaelfox/feat/windowConstraintLinux
Add X11 window size hint to juce library code for minimum window dimensions
2 parents 8df1753 + 5c59ca0 commit 6b17bd9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

JuceLibraryCode/modules/juce_gui_basics/native/juce_linux_Windowing.cpp

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

16411649
XSetWMNormalHints (display, windowH, hints);
16421650
XFree (hints);

0 commit comments

Comments
 (0)