summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/get_frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'recordmydesktop/src/get_frame.c')
-rw-r--r--recordmydesktop/src/get_frame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recordmydesktop/src/get_frame.c b/recordmydesktop/src/get_frame.c
index 635a868..5ab5b8d 100644
--- a/recordmydesktop/src/get_frame.c
+++ b/recordmydesktop/src/get_frame.c
@@ -75,8 +75,8 @@ void *GetFrame(ProgData *pdata){
RectInsert(&pdata->rect_root[tlist_sel],&mouse_pos_temp);
}
xcim=XFixesGetCursorImage(pdata->dpy);
- mouse_pos_abs.x=xcim->x;
- mouse_pos_abs.y=xcim->y;
+ mouse_pos_abs.x=xcim->x-xcim->xhot;
+ mouse_pos_abs.y=xcim->y-xcim->yhot;
mouse_pos_abs.width=xcim->width;
mouse_pos_abs.height=xcim->height;
}
© All Rights Reserved