From a42f6ff8288d6065bdf2fb27a0ef4457f7ec21d3 Mon Sep 17 00:00:00 2001 From: "Julien \"_FrnchFrgg_\" RIVAUD" Date: Wed, 20 Sep 2017 17:59:13 +0200 Subject: [PATCH] Don't try to limit the UI width if no screen is found --- gtk2_ardour/generic_pluginui.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/generic_pluginui.cc b/gtk2_ardour/generic_pluginui.cc index 6fe5e8b7fd..e1a737444d 100644 --- a/gtk2_ardour/generic_pluginui.cc +++ b/gtk2_ardour/generic_pluginui.cc @@ -224,6 +224,8 @@ GenericPluginUI::~GenericPluginUI () void GenericPluginUI::scroller_size_request (Gtk::Requisition* a) { + GtkRequisition request = hpacker.size_request(); + Glib::RefPtr window (get_window()); Glib::RefPtr screen; @@ -232,6 +234,7 @@ GenericPluginUI::scroller_size_request (Gtk::Requisition* a) } if (!screen) { + a->width = request.width; return; } @@ -243,8 +246,6 @@ GenericPluginUI::scroller_size_request (Gtk::Requisition* a) const int maximum_width = monitor.get_width() * 0.9; - GtkRequisition request = hpacker.size_request(); - if (request.width > maximum_width) { for (vector::const_iterator cuip = input_controls.begin(); cuip != input_controls.end();