Lines Matching refs:follow_mouse
77 int follow_mouse; /**< Set by a private option. */
212 if (x11grab->follow_mouse) {
479 int follow_mouse = s->follow_mouse;
519 if (follow_mouse) {
527 if (follow_mouse == -1) {
534 if (pointer_x > x_off + s->width - follow_mouse) {
535 x_off += pointer_x - (x_off + s->width - follow_mouse);
536 } else if (pointer_x < x_off + follow_mouse)
537 x_off -= (x_off + follow_mouse) - pointer_x;
538 if (pointer_y > y_off + s->height - follow_mouse) {
539 y_off += pointer_y - (y_off + s->height - follow_mouse);
540 } else if (pointer_y < y_off + follow_mouse)
541 y_off -= (y_off + follow_mouse) - pointer_y;
620 { "follow_mouse", "move the grabbing region when the mouse pointer reaches within specified amount of pixels to the edge of region",
621 OFFSET(follow_mouse), AV_OPT_TYPE_INT, {.i64 = 0}, -1, INT_MAX, DEC, "follow_mouse" },
623 0, AV_OPT_TYPE_CONST, {.i64 = -1}, INT_MIN, INT_MAX, DEC, "follow_mouse" },