~ruther/dwl

de3d8ce7bfb2da535b0c1e3d94a8f1cee9f2410c — Rutherther 11 months ago 7356222
Apply accessnthmon-movecursor patch
1 files changed, 10 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +10 -1
@@ 1841,8 1841,17 @@ void
focusnthmon(const Arg *arg)
{
	Monitor *m = numtomon(arg->i);
	if (m == selmon || m == NULL)

	if (!m)
		return;

	if (m == selmon) {
		double target_x = m->m.x + m->m.width / 2;
		double target_y = m->m.y + m->m.height / 2;
		wlr_cursor_move(cursor, NULL, target_x - cursor->x, target_y - cursor->y);
		return;
	}

	selmon = m;
	focusclient(focustop(selmon), 1);
}

Do not follow this link