ximagesrc: Fix the destination coordinates of the cursor
authorAntonio Ospite <ao2@ao2.it>
Thu, 4 Sep 2014 22:15:30 +0000 (00:15 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 16 Sep 2014 07:32:22 +0000 (10:32 +0300)
commitcb70a7f6a7dfded16981edd9a67ad25969d0ba34
treee5c5550d6c1cebf54ea87c2841a52951981034bf
parentd3eea8f606b240f9cc0cea2a7c2e32d488666754
ximagesrc: Fix the destination coordinates of the cursor

XFixes provides the cursor coordinates relative to the root window, this
is not taken into account when using the xid property to capture
a specific window, the result is that the cursor gets drawn at the wrong
position.

In order to fix this consider the window location when calculating the
cursor position in the destination image.

https://bugzilla.gnome.org/show_bug.cgi?id=690646
sys/ximage/gstximagesrc.c
sys/ximage/gstximagesrc.h