bluetech/kmscon — comment on commit 24fcc2b6364003e205dcfb9828629eb66f630ae2
File: src/output.c line 173
By dvdhrm:

This is ugly. The list is not supposed to be sorted, otherwise we would use double-linked lists. The preferred way here would be keeping a "default_mode/def_mode" pointer in each kmscon_output structure and linking this to the best output. We could then set it to the first mode we add or add some more logic which tries to find the most suitable mode.