Move mouse to center of monitor if focused again
1 files changed, 9 insertions(+), 1 deletions(-) M dwl.c
M dwl.c => dwl.c +9 -1
@@ 1449,8 1449,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); }