spectacle icon indicating copy to clipboard operation
spectacle copied to clipboard

Resizing LV2 in Carla doesn't change the canvas size

Open unfa opened this issue 4 years ago • 8 comments

I've tested the plug-in in Carla today and resizing does't seem to work.

I can resize the window, but the plug-in still redraws only the same area of it, leaving the rest with garbage.

unfa avatar May 04 '21 13:05 unfa

Carla is not letting the plugin know about the resize. puglReshape not called, but working in Jalv @falkTX, perhaps you have an idea of why that is?

jpcima avatar May 04 '21 15:05 jpcima

Interestingly Wolf Spectrum does resize correctly in Carla (it does not in Ardour though).

unfa avatar May 04 '21 15:05 unfa

Right thats' because Patrick cheated it, he implements his custom resize handle. This issue is with WM-managed resizing.

jpcima avatar May 04 '21 15:05 jpcima

I think this is an issue with LV2 in general. I don't know about VST3, but LV2 plug-ins have issues with resizing all the time. Maybe we're lacking some standardized way of communicating this?

unfa avatar May 04 '21 15:05 unfa

Highly doubtful, I'll dig in Carla later to check what really happens

jpcima avatar May 04 '21 16:05 jpcima

Ok it comes down to this, an unimplemented in DPF return 1; // This needs more testing

For reference https://github.com/DISTRHO/DPF/blob/89cbdbba5320c8f8822885b510307bef0c7a428f/distrho/src/DistrhoUILV2.cpp#L509-L510

jpcima avatar May 04 '21 17:05 jpcima

resizing has been a problematic thing in dpf (partially because of pugl) I am reworking the dgl/graphics stuff in dpf right now, which should fix this situation but will take some time until it is complete. You can follow the (re)work at https://github.com/DISTRHO/DPF/commits/pugl-upstream-v2 But not much to see at this point.

falkTX avatar May 04 '21 20:05 falkTX

Is this still an issue ?

luzpaz avatar Dec 05 '23 15:12 luzpaz