Skip to content

Setting initial size of the GUI window can fail #42

@torte71

Description

@torte71

Setting the plugin-hosts windows size (via the LV2 handle, resize->ui_resize()) doesn't work immediately, it can be delayed even after the call to resize_event(). In that case, resize_event() fetches the wrong/old size from parentWindow, resizes its own window and cairo-surface to that - and finally the resize->ui_resize() resizes the parentWindow, resulting in a wrongly sized and clipped view.
I don't know a way to reliably tell, when resize->ui_resize() has completed. If resize_event() gets moved into the first expose event, that may increase the chances of the former resize operation to finish. But it's still not ideal.

For completeness:
There was a resizing workaround for gtk, that I've removed: brummer10/GxBaJaTubeDriver.lv2@4792d55
It seems unrelated to the problem above and I couldn't see that removing it caused new problems in Ardour or Reaper.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions