[LAD] Re: LV2 X11 plugin questions

Robin Gareus <[email protected]> Sat, 5 Jul 2025 13:08:58 +0200
Newsgroups gmane.linux.audio.devel
Message-ID <[email protected]>
On 2025-07-05 01:38, Fons Adriaensen wrote:
> 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 ?

It's an optional extension (like LV2 UI) that not all hosts implement.
I suppose it's a bug that Ardour still loads the plugin when a required 
feature is not implemented.


> 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. 

That is backwards. The child window size should follow the parent.

If the child window is smaller than the the parent's, libsuil centers 
the child window.

>> 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.
> 
>> for inspiration:
>> https://github.com/x42/robtk/blob/master/pugl/pugl_x11.c#L619-L644
> 
> That uses GLX. One step at a time - it's already hard enough.

:) despite GLX, all the window sizing and event handling are just X11.

> 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.

Works just fine here. https://ardour.org/debugging_ardour

--
robin

_______________________________________________
Linux-audio-dev mailing list -- linux-audio-dev-cunTk1MwBs/[email protected]
To unsubscribe send an email to linux-audio-dev-leave-cunTk1MwBs/[email protected]
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEwak9kdzQUxfAUWyqoJC84Cz1fwQFAmhpB8oFAwAAAAAACgkQoJC84Cz1fwQd
vw//RJj7+UHaX2V4tKbkh9X3GawMeucAZmyCCT80syX+KAAk8SVyvQptojmGdJ2fq8sm/uAyIQBP
OPvv7vN7d0OfhrTvhWmv4NSsZ/lcmQt61RDlZJcLGvWtavYAWXhVQkUsRN/1D6FGcodii9W/x5BS
+Bv0bhZQIt4fhkVFoQephGC4hrNdcZBCTgh/SiQpkOHnpOkg2+0IzjcO46oggQ0zpIBdheb4D2e5
xflalGxKBMza+cbwUWAYn1CZ28xtkfQWfPQ4bwqlpj4KikVXCwgpn4RqYBgstEcBYupJbw/dprhh
nbhqiBrRwPPgBqkz/WEb+vM8UduGndESmnIn+MThSvs46EfbG6TkrGThB3/6pjpIFmxfInEgOfJQ
XnJvgGseBsgyPXAu9x6b+EIYZaf+lZumOGbn+FNDoJfQ8ARjGpO5caqi+LatucItoQXlr6uO4RBk
B813SnXE0W0JeksCQwM7W2airmxdcEAkcThYdyEimSX0bQoTIIRhZUZHuDMO1SlvHhskJJ++RH/9
Jz9J2uu1/3JP8bpDs8eAzfC3wvbxdO3GAfUP7nkVhYgZVByjNAHOgY9a2Bdei0l2QQWVZhRMkLwa
hVoCwu+HDeEGkoaK0hVZ5s7p9LmuKzECzvqUeYdSrzx+quZvWjYD+8jnFYhfggJ2sB7R8NwpiasC
0q8=
=L2ZA
-----END PGP SIGNATURE-----