diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-19 18:37:51 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-19 18:37:51 -0700 |
commit | ae21d9d55227c4a831eeec80b4a494cc36e0b822 (patch) | |
tree | e7ad43fb8bad98818a31f2a710f519bc681fbf91 /src | |
parent | ea708c98894356768455874a02dfa33fd3835ca1 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/rmd_get_frames.c | 4 |
1 files 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); |