From 523891f8f9bb911f322b1a51e5c1e94685de9a05 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 24 Apr 2014 20:54:40 +0200 Subject: [PATCH] fix packing of LXVST UIs (minimum size, border) --- gtk2_ardour/vst_plugin_ui.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/vst_plugin_ui.cc b/gtk2_ardour/vst_plugin_ui.cc index 3afb17a652..03bc2e0d53 100644 --- a/gtk2_ardour/vst_plugin_ui.cc +++ b/gtk2_ardour/vst_plugin_ui.cc @@ -49,6 +49,7 @@ VSTPluginUI::VSTPluginUI (boost::shared_ptr 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;