From e244fa2fbf637a901a0b850f8c5eacfd8896b571 Mon Sep 17 00:00:00 2001 From: iovar Date: Thu, 3 May 2007 17:52:01 +0000 Subject: added xhot,yhot in xfixes cursor positioning. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@331 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/get_frame.c | 4 ++-- 1 file 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; } -- cgit v1.2.1