X keyboard map handling code (keys_init -> keys_make_xkeys -> qsort in https://sourceforge.net/p/soundtracker/git/ci/master/tree/app/keys.c) I think I have got the sndio bits updated to what's needed with the slightly changed api but the above crash prevents actual testing..