diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/Engine.cpp | 4 | ||||
-rw-r--r-- | src/gui/PatchWindow.cpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/Engine.cpp b/src/engine/Engine.cpp index dde8ec8b..dd25485a 100644 --- a/src/engine/Engine.cpp +++ b/src/engine/Engine.cpp @@ -199,6 +199,8 @@ Engine::activate() Shared::Resource::Properties in_properties(control_properties); in_properties.insert(make_pair(uris.rdf_type, uris.lv2_InputPort)); in_properties.insert(make_pair(uris.lv2_index, 0)); + in_properties.insert(make_pair(uris.ingenui_canvas_x, 32.0f)); + in_properties.insert(make_pair(uris.ingenui_canvas_y, 32.0f)); execute_and_delete_event(context, new Events::CreatePort( *this, SharedPtr<Request>(), 0, @@ -208,6 +210,8 @@ Engine::activate() Shared::Resource::Properties out_properties(control_properties); out_properties.insert(make_pair(uris.rdf_type, uris.lv2_OutputPort)); out_properties.insert(make_pair(uris.lv2_index, 1)); + out_properties.insert(make_pair(uris.ingenui_canvas_x, 128.0f)); + out_properties.insert(make_pair(uris.ingenui_canvas_y, 32.0f)); execute_and_delete_event(context, new Events::CreatePort( *this, SharedPtr<Request>(), 0, diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 27e2737e..39544808 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -254,8 +254,6 @@ PatchWindow::set_patch(SharedPtr<PatchModel> patch, SharedPtr<PatchView> view) show_all(); - _view->canvas()->scroll_to_center(); - _view->signal_object_entered.connect(sigc::mem_fun(this, &PatchWindow::object_entered)); _view->signal_object_left.connect(sigc::mem_fun(this, &PatchWindow::object_left)); |