Correct for multimonitor setup

This commit is contained in:
A Frederick Christensen 2024-01-07 13:28:08 -06:00
parent 842e4cfbda
commit e26e42e4bb
No known key found for this signature in database
GPG Key ID: 6183FA655784FC36

2
dwl.c
View File

@ -1067,7 +1067,7 @@ cursorwarptohint(void)
if (c && (active_constraint->current.committed & WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT)) {
sx = active_constraint->current.cursor_hint.x + c->mon->m.x + c->bw;
sy = active_constraint->current.cursor_hint.y + c->mon->m.y + c->bw;
wlr_cursor_warp(cursor, NULL, sx - c->geom.x, sy - c->geom.y);
wlr_cursor_warp(cursor, NULL, sx - (2 * c->geom.x), sy - (2 * c->geom.y));
wlr_seat_pointer_warp(seat, sx, sy);
}
}