On Fri, Jul 04, 2025 at 03:59:44PM +0200, Robin Gareus wrote:
in your case, use XSizeHints and XSetWMNormalHints().
Will test.
But then what is the noUSerResize feature for ?
Some things are really odd. From your example code:
*widget = (void*)self->window;
This allows the host to find out the window created by
the plugin and resize its parent window to the actual
required size. But it does so only once, after calling
the constructor. Any later changes are completely ignored.
Then again since DPI varies significantly you may want
to make the GUI
scalable to cater for users with a HiDPI display.
I may offer two scales, based on the DPI.
That uses GLX. One step at a time - it's already hard enough.
Q2: In Ardour
preferences I have
'Closing a plugin window only hides the window'.
Yet actually the GUI is destroyed. Bug or feature ?
It only applies to VST2/3 plugins (not LV2).
:-(
Another thing I noticed when loading some LV2 plugins (ACE)
in Ardour8: using the 'Add Preset' button seems to result
in a total freeze of Ardour.
Ciao,
--
FA