diff options
author | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-05-03 17:52:01 +0000 |
---|---|---|
committer | iovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2007-05-03 17:52:01 +0000 |
commit | e244fa2fbf637a901a0b850f8c5eacfd8896b571 (patch) | |
tree | 6e91e621b92fa5c612a8c982dfa3c8efab6b3b54 | |
parent | dc2c099c04c7c6d066167e5dd7dd53fee439aca4 (diff) |
added xhot,yhot in xfixes cursor positioning.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@331 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | recordmydesktop/src/get_frame.c | 4 |
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; } |