fix: error judge for curtag whether is scroller layout
This commit is contained in:
@@ -26,7 +26,8 @@ bool is_scroller_layout(Monitor *m) {
|
||||
"vertical_scroller") == 0)
|
||||
return true;
|
||||
|
||||
if (strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "scroller") == 0)
|
||||
if (m->pertag->curtag &&
|
||||
strcmp(m->pertag->ltidxs[m->pertag->curtag]->name, "scroller") == 0)
|
||||
return true;
|
||||
if (strcmp(m->pertag->ltidxs[m->pertag->curtag]->name,
|
||||
"vertical_scroller") == 0)
|
||||
|
||||
Reference in New Issue
Block a user