Lines Matching refs:nearest
318 * Find the nearest barrier client that is blocking movement from x1/y1 to x2/y2.
325 * @return The barrier nearest to the movement origin that blocks this movement.
332 struct PointerBarrierClient *c, *nearest = NULL;
356 nearest = c;
361 return nearest;
402 struct PointerBarrier *nearest = NULL;
433 * Given the origin and the movement vector, get the nearest barrier
437 * destination, again finding the nearest barrier and clamping.
449 nearest = &c->barrier;
464 barrier_clamp_to_barrier(nearest, dir, &x, &y);
466 if (barrier_is_vertical(nearest)) {
470 else if (barrier_is_horizontal(nearest)) {