fix packing of LXVST UIs (minimum size, border)

This commit is contained in:
Robin Gareus 2014-04-24 20:54:40 +02:00
parent 9f266e9061
commit 523891f8f9

View 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;