From ae21d9d55227c4a831eeec80b4a494cc36e0b822 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 19 Aug 2021 18:37:51 -0700 Subject: get_frames: fix --follow-mouse Put back parens which must have been removed accidentally in a cosmetic cleanup pass, restores --follow-mouse functionality which was confirmed/reported as broken by @koo5 in https://github.com/Enselic/recordmydesktop/pull/32#issuecomment-902089762 --- src/rmd_get_frames.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rmd_get_frames.c b/src/rmd_get_frames.c index 65f086f..3a3fc2e 100644 --- a/src/rmd_get_frames.c +++ b/src/rmd_get_frames.c @@ -563,8 +563,8 @@ void *rmdGetFrames(ProgData *pdata) if (pdata->args.follow_mouse) { rmdMoveCaptureArea( &pdata->brwin.rrect, - mouse_pos_abs.x + pdata->args.xfixes_cursor ? xcim->xhot : 0, - mouse_pos_abs.y + pdata->args.xfixes_cursor ? xcim->yhot : 0, + mouse_pos_abs.x + (pdata->args.xfixes_cursor ? xcim->xhot : 0), + mouse_pos_abs.y + (pdata->args.xfixes_cursor ? xcim->yhot : 0), pdata->specs.width, pdata->specs.height); -- cgit v1.2.3