Refactor after upstream changes; harden get_name_from_tag_number

This commit is contained in:
Gerry Hernandez 2026-03-15 18:52:11 -07:00
parent 9bfe2f08dd
commit c3a0c11adc
8 changed files with 67 additions and 54 deletions

View file

@ -1539,10 +1539,10 @@ int32_t viewtoright_have_client(const Arg *arg) {
return 0;
}
if (current >= tag_count)
if (current >= config.tag_count)
return 0;
for (n = current + 1; n <= tag_count; n++) {
for (n = current + 1; n <= config.tag_count; n++) {
if (get_tag_status(n, selmon)) {
found = true;
break;