fix: scroller not work in ~0 tag

This commit is contained in:
DreamMaoMao 2025-08-24 23:10:27 +08:00
parent 461f022f40
commit 9ee2055f55
2 changed files with 16 additions and 5 deletions

View file

@ -16,6 +16,16 @@ Monitor *dirtomon(enum wlr_direction dir) {
}
bool is_scroller_layout(Monitor *m) {
if (!m->pertag->curtag &&
strcmp(m->pertag->ltidxs[m->pertag->prevtag]->name, "scroller") == 0)
return true;
if (!m->pertag->curtag &&
strcmp(m->pertag->ltidxs[m->pertag->prevtag]->name,
"vertical_scroller") == 0)
return true;
if (strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "scroller") == 0)
return true;
if (strcmp(m->pertag->ltidxs[m->pertag->curtag]->name,