AmendHub

Download:

jcs

/

wallops

/

amendments

/

22

main: Fix a logic bug in show_focusable when nfocusables=1

This may be the cause of sending a bogus focusable object after
resume.

jcs made amendment 22 over 2 years ago
--- main.c Mon Feb 7 21:18:50 2022 +++ main.c Tue Feb 8 21:36:32 2022 @@ -439,7 +439,7 @@ show_focusable(struct focusable *focusable) struct focusable *last, *tmp; short n; - if (nfocusables > 1 || focusables[0] != focusable) { + if (nfocusables > 1 && focusables[0] != focusable) { last = focusables[0]; focusables[0] = focusable; for (n = 1; n < nfocusables; n++) {