View Issue Details

IDProjectCategoryView StatusLast Update
0008864ardourbugspublic2022-01-21 22:47
ReporterSanbornFan Assigned To 
Status newResolutionopen 
PlatformApple MacintoshOSMacOSOS Version10.12 or later
Product Version6.9 
Summary0008864: macOS VST2 plugin wrapper offsets gui by few pixels in both x and y directions so right side and bottom edge are chopped off
DescriptionmacOS VST2 plugin wrapper offsets gui by few pixels in both x and y directions. Since the wrapper is sized exactly to fit the plugin then the right side and bottom edge are truncated.

This is not consistent with VST3 and AU plugin wrappers where gui is positioned correctly at 0,0
Windows and Linux versions are also correct. It is only macOS VST2 wrapper that has the problem.

Call to gtk_widget_translate_coordinates appears to be offsetting 8 units(pixels?) in x direction and 6 in y direction
file: line: 212
MacVSTPluginUI::lower_box_size_allocate (Gtk::Allocation& allocation)
    gint xx, yy;
            8, 6, &xx, &yy);
    [_ns_view setFrame:NSMakeRect (xx, yy, allocation.get_width (), allocation.get_height ())];
    NSArray* subviews = [_ns_view subviews];
    for (unsigned long i = 0; i < [subviews count]; ++i) {
        NSView* subview = [subviews objectAtIndex:i];
        [subview setFrame:NSMakeRect (0, 0, allocation.get_width (), allocation.get_height ())];
        break; /* only resize first subview */
Steps To ReproduceOpen a VST2 plugin such as LennarDigital Sylenth1. Drag the right side and bottom edge of the wrapper window to reveal missing pixels.
TagsNo tags attached.



2022-01-21 22:47

administrator   ~0026310

This dates back to
spacing corresponds to the container (box) spacing. Chances are that those have changed since...

Issue History

Date Modified Username Field Change
2022-01-21 20:35 SanbornFan New Issue
2022-01-21 22:47 x42 Note Added: 0026310