[LV2] Passing ui:scaleFactor and ui:updateRate as atom messages

Filipe Coelho falktx at gmail.com
Sat May 1 11:53:06 PDT 2021

On 01/05/21 19:50, Alexandros Theodotou wrote:
> In the normal case, hosts will pass the scale factor that the host uses
> to plugin UIs. The scale factor the host uses is likely taken from the
> physical monitor, so if you drag the host window to another monitor,
> the host will be able to automatically change its scale factor to match
> that monitor. GTK supports this for example (GtkWidget has callbacks
> for scale factor changes and an API to check its current scale factor).
> So in the case above, when you move the plugin window to another
> monitor, the host will want to change the plugin window's scale factor
> to the monitor's scale factor. Unless I'm missing something, the only
> way to accomplish this with the current API is to re-instantiate the
> plugin and pass the new options.

Nope, the UI side can have options interface that host can call to 
inform of such changes.

This is similar to current hosts that inform plugins of (nominal) buffer 
size changes.

Not that there are any hosts that dynamically report scale factor 
changes anyway.
But if you want, you can support this.

More information about the Devel mailing list