~ruther/dwl

09e40c15476fed118fa0506eea71270dfbee6141 — Rutherther 11 months ago 3a3de0c
Apply accessnthmon-movecursor patch
1 files changed, 10 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +10 -1
@@ 1828,8 1828,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