[LAD] Re: LV2 X11 plugin questions

Robin Gareus <[email protected]> Fri, 4 Jul 2025 15:59:44 +0200
Newsgroups gmane.linux.audio.devel
Message-ID <[email protected]>
On 2025-07-04 12:17, Fons Adriaensen wrote:
> Hello all,

Hi Fons,

> I'm finally experimenting with LV2 GUIs, in particular X11 ones.

That's great to hear. For the case at hand
http://lists.lv2plug.in/listinfo.cgi/devel-lv2plug.in
may be a better place to ask for help

> Q1: How do I make the GUI window fixed size ? Tried adding
> 'ui:fixedSize' as a required feature, but that doesn't work.

in your case, use XSizeHints and XSetWMNormalHints().

Then again since DPI varies significantly you may want to make the GUI 
scalable to cater for users with a HiDPI display.

for inspiration:
https://github.com/x42/robtk/blob/master/pugl/pugl_x11.c#L619-L644

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

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

wsF5BAABCAAjFiEEwak9kdzQUxfAUWyqoJC84Cz1fwQFAmhn3lAFAwAAAAAACgkQoJC84Cz1fwTg
nA/5AT9qvfpG7hJ0aWieNdW8v0BjHmP6DnXhRHHP3FNcGGeGYuq72dDDQ5a26Xg/hVU8snHXxR6h
f5qnZ+zLpsOJhX9CFZc23xPc62aWa8+NcsjrNz4LG6rNc13mEGrIHPRP9v54WgWOJO8BVfNzNGoA
xOl8ESKDWmffV2NuUeffZ9TmSR8Z5iUkw04x0sPa/l+9Ycgf7DPCTSuIvbl7gPZMOmIAq5Hu+G60
6rViYgmIZ9XnTOgf6rJ7qKxY8fuzXWHx9twnleOm4yUOm2w5hLSZ6GiCsJ7b6l/VN4EHbhxVUIeN
Ings7ETSXvESrq2LrvEgBbpuadebVf82fiBCBgGfUyI7AUoLjmJwzQmg3sVQnNkdhKvs5nZjSTGa
/deyvwioFuzhRq93MkGQcvwUHLx/cVwId0LSuRTVUMlg1jfmnZxFtPf86kNARzG6RJX3jbz/BWxQ
w6Y2ZyNouz4tA23RghABnokUi0lXEV3EPM7syAPPEAjbufJU556kdfTwY7HrXDAs57kHzoppvqZm
5zww0ZjKSJgH3q5l5/aRCcL3aLlF5M0S7NyA/5hEbjX3adZjtwq2Y4Vk4xtra6FjU/1aIyvcRxoi
z4aOuOBoqpjnmyxvQO4Es/UVOoCGlsEH56shwBtSdRZg0cZZuPADolla5OCR4965IixcBPBihPib
TSo=
=X/3p
-----END PGP SIGNATURE-----