Special case "Virtual Keyboard" to be available as external input
authorRobin Gareus <robin@gareus.org>
Fri, 18 Oct 2019 21:40:40 +0000 (23:40 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 18 Oct 2019 21:40:40 +0000 (23:40 +0200)
libs/ardour/port_manager.cc

index b329aeca11236f1a3d35c6cf54cda16e81d9dd0f..2678740131a09e3eff8f9b2a140a8c5a0e5948cb 100644 (file)
@@ -1262,7 +1262,8 @@ PortManager::fill_midi_port_info_locked ()
 
        for (vector<string>::iterator p = ports.begin(); p != ports.end(); ++p) {
 
-               if (port_is_mine (*p)) {
+               /* ugly hack, ideally we'd use a port-flag, or at vkbd_output_port()->name() */
+               if (port_is_mine (*p) && *p != _backend->my_name() + ":" + _(Virtual Keyboard")) {
                        continue;
                }