Lines Matching defs:follow_mouse
77 int follow_mouse; /**< Set by a private option. */
207 if (x11grab->follow_mouse) {
456 int follow_mouse = s->follow_mouse;
486 if (follow_mouse) {
494 if (follow_mouse == -1) {
501 if (pointer_x > x_off + s->width - follow_mouse) {
502 x_off += pointer_x - (x_off + s->width - follow_mouse);
503 } else if (pointer_x < x_off + follow_mouse)
504 x_off -= (x_off + follow_mouse) - pointer_x;
505 if (pointer_y > y_off + s->height - follow_mouse) {
506 y_off += pointer_y - (y_off + s->height - follow_mouse);
507 } else if (pointer_y < y_off + follow_mouse)
508 y_off -= (y_off + follow_mouse) - pointer_y;
588 { "follow_mouse", "Move the grabbing region when the mouse pointer reaches within specified amount of pixels to the edge of region.",
589 OFFSET(follow_mouse), AV_OPT_TYPE_INT, { 0 }, -1, INT_MAX, DEC, "follow_mouse" },
590 { "centered", "Keep the mouse pointer at the center of grabbing region when following.", 0, AV_OPT_TYPE_CONST, { -1 }, INT_MIN, INT_MAX, DEC, "follow_mouse" },