fix: error index of layout

This commit is contained in:
DreamMaoMao 2025-06-15 14:48:47 +08:00
parent 6a484e6129
commit ea12f4bb4d

View file

@ -4883,7 +4883,7 @@ void motionnotify(uint32_t time, struct wlr_input_device *device, double dx,
(c->geom.x + c->geom.width > c->mon->m.x + c->mon->m.width ||
c->geom.x < c->mon->m.x))) {
if (c && c->mon &&
strcmp(c->mon->pertag->ltidxs[selmon->pertag->curtag]->name,
strcmp(c->mon->pertag->ltidxs[c->mon->pertag->curtag]->name,
"scroller") == 0 &&
(c->geom.x + c->geom.width > c->mon->m.x + c->mon->m.width ||
c->geom.x < c->mon->m.x)) {