From ea12f4bb4d7b02cba6bc57b7ac97ba04318a3dce Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 15 Jun 2025 14:48:47 +0800 Subject: [PATCH] fix: error index of layout --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 5bb4dfd..347511e 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -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)) {