update config

This commit is contained in:
korei999 2024-01-10 16:58:45 +02:00
parent b51be545b9
commit 60b1fe634d
2 changed files with 13 additions and 13 deletions

16
dwl.c
View file

@ -1158,16 +1158,16 @@ void
cursorwarptohint(void) cursorwarptohint(void)
{ {
Client *c = NULL; Client *c = NULL;
// double sx, sy; double sx, sy;
toplevel_from_wlr_surface(active_constraint->surface, &c, NULL); toplevel_from_wlr_surface(active_constraint->surface, &c, NULL);
/* TODO: wlroots 0.18: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4478 */ /* TODO: wlroots 0.18: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4478 */
// if (c && (active_constraint->current.committed & WLR_POINTER_CONSTRAINT_V1_STATE_CURSOR_HINT)) { 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; 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; 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 - c->geom.x, sy - c->geom.y);
// wlr_seat_pointer_warp(seat, sx, sy); wlr_seat_pointer_warp(seat, sx, sy);
// } }
} }
void void
@ -1176,7 +1176,7 @@ destroypointerconstraint(struct wl_listener *listener, void *data)
PointerConstraint *pointer_constraint = wl_container_of(listener, pointer_constraint, destroy); PointerConstraint *pointer_constraint = wl_container_of(listener, pointer_constraint, destroy);
if (active_constraint == pointer_constraint->constraint) { if (active_constraint == pointer_constraint->constraint) {
cursorwarptohint(); // cursorwarptohint();
active_constraint = NULL; active_constraint = NULL;
} }