From 1cdf1e64e0a2362b23e8c170841f953de16a2d30 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 19 Aug 2021 18:40:28 -0700 Subject: get_frames: nix even coord constraint in rmdMoveCaptureArea We no longer bother with such things in this fork. It's worth noting the original codebase bothered with these things in places where it was altogether unnecessary. This means --follow-mouse will precisely follow the mouse, not only when the mouse has moved out of the bounding area enough to reach the next even coordinate. --- src/rmd_get_frames.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/rmd_get_frames.c b/src/rmd_get_frames.c index 3a3fc2e..2b442b5 100644 --- a/src/rmd_get_frames.c +++ b/src/rmd_get_frames.c @@ -204,10 +204,8 @@ static void rmdMoveCaptureArea( XRectangle *rect, int t_x = 0, t_y = 0; t_x = cursor_x - rect->width / 2; - t_x = (t_x >> 1) << 1; rect->x = (t_x < 0) ? 0 : ((t_x + rect->width > width) ? width - rect->width : t_x); t_y = cursor_y - rect->height / 2; - t_y = (t_y >> 1) << 1; rect->y = (t_y < 0 ) ? 0 : ((t_y + rect->height > height) ? height - rect->height : t_y); } -- cgit v1.2.3