fix: scroller not work in ~0 tag

This commit is contained in:
DreamMaoMao
2025-08-24 23:10:27 +08:00
parent c2cfa2aa01
commit 9ec80f0918
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,