Linux Clap `gui.request_resize` behavior differs from VST3
Hi!
I'm noticing a difference with `gui.request_resize` on the CLAP implementation in linux. I'm working with the shortcircuit wrapper which translates clap calls into VST3 so I can compare an equivalent VST3 and CLAP implementation. Ubuntu 22.04, whichever version I downloaded yesterday of reaper!
The problem quite simply is `request_resize` in CLAP generates a call to setSize which is the old size not the new size. Whereas the VST3 does not. It's almost like in the call to request_resize implementation on linux you use the current size not the passed in argument!
Here's what I see in my log for my VST3
```
clients/clap-first/scxt-plugin/scxt-plugin.cpp:81 [09:38:55.238] On Zoom Changed with 1.25 - requesting resize of 1482.5x1020
helpers/src/sst/clap_juce_shim/clap_juce_shim_impl.cpp:115 guiSetSize W=1482 H=1020
```
and here's what I see for my CLAP
```
clients/clap-first/scxt-plugin/scxt-plugin.cpp:81 [09:36:30.459] On Zoom Changed with 1.25 - requesting resize of 1482.5x1020
/home/paul/dev/shortcircuit-xt/libs/sst/sst-clap-helpers/src/sst/clap_juce_shim/clap_juce_shim_impl.cpp:115 guiSetSize W=948 H=652
```
which was the 'prior' size.
The CLAP wrapper in the VST3 context turns the request_resize into `Steinberg::IPlugFrame::resizeView'.
In bitwig and ardour on linux the clap resizes without problem.
Thanks for taking a look at this and please let me know if you have any questions.
Fixing, thanks. What happens presently is that the passed-in dimensions are ignored and clap_plugin_gui::get_size() is called instead. The issue is not linux-specific.
Fixing, thanks. What happens presently is that the passed-in dimensions are ignored and clap_plugin_gui::get_size() is called instead. The issue is not linux-specific.
Yeah I figured it was something akin to that. Thanks for the quick response!