summaryrefslogtreecommitdiff
path: root/gtk2_ardour/lxvst_plugin_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-12-29 10:08:42 +0100
committerRobin Gareus <robin@gareus.org>2015-12-29 10:08:42 +0100
commitd959461537e3c65b9fb0f8cd93aae6666856cf84 (patch)
tree89c1245fc0ae8382e754ac91db5a17c28999e626 /gtk2_ardour/lxvst_plugin_ui.cc
parent6f347d325a5348f958d6889dbe39caad289a3493 (diff)
LinuxVST window re-sizing: forward event to child window.
Diffstat (limited to 'gtk2_ardour/lxvst_plugin_ui.cc')
-rw-r--r--gtk2_ardour/lxvst_plugin_ui.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/lxvst_plugin_ui.cc b/gtk2_ardour/lxvst_plugin_ui.cc
index ad8bc0175a..f5265cffa8 100644
--- a/gtk2_ardour/lxvst_plugin_ui.cc
+++ b/gtk2_ardour/lxvst_plugin_ui.cc
@@ -78,9 +78,12 @@ LXVSTPluginUI::resize_callback ()
void* gtk_parent_window = _vst->state()->extra_data;
if (gtk_parent_window) {
+ _socket.set_size_request(
+ new_width + _vst->state()->hoffset,
+ new_height + _vst->state()->voffset);
+
((Gtk::Window*) gtk_parent_window)->resize (new_width, new_height + LXVST_H_FIDDLE);
}
-
_vst->state()->want_resize = 0;
}