~ruther/dwl

bde847d80af4da08239e1b13f2e06d42d23ed1e2 — Rutherther 8 months ago 9959656 + 3cea1ea
Merge branch 'v0.7/accessnthmon-movemouse' into v0.7/patched-base
1 files changed, 9 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +9 -1
@@ 1895,8 1895,16 @@ void
focusnthmon(const Arg *arg)
{
	Monitor *m = numtomon(arg->i);
	if (!m || m == selmon)
	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