remove incorrect calls to Editor::maybe_autoscroll() from specific Drag classes ...
[ardour.git] / gtk2_ardour / vst_plugin_ui.cc
index 3afb17a652734f7428446ea98b89e90d2d1a7a7f..6ed5b9af03241932bb41fcda45440c4f58bddeee 100644 (file)
@@ -49,6 +49,7 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr<ARDOUR::PluginInsert> insert, boost:
        pack_start (*box, false, false);
 #ifdef GDK_WINDOWING_X11
        pack_start (_socket, true, true);
+       _socket.set_border_width (0);
 #endif
 }
 
@@ -87,6 +88,9 @@ VSTPluginUI::package (Gtk::Window& win)
 
        /* This assumes that the window's owner understands the XEmbed protocol */
        _socket.add_id (get_XID ());
+       _socket.set_size_request(
+                       _vst->state()->width + _vst->state()->hoffset,
+                       _vst->state()->height + _vst->state()->voffset);
 #endif
        
        return 0;
@@ -147,4 +151,3 @@ VSTPluginUI::configure_handler (GdkEventConfigure*)
 #endif
        return false;
 }
-