]> git.sesse.net Git - ffmpeg/commit
x11grab: Check the XQueryPointer return value
authorAntonio Ospite <ao2@ao2.it>
Thu, 25 Sep 2014 22:44:17 +0000 (00:44 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 4 Oct 2014 21:46:46 +0000 (23:46 +0200)
commit2a5ac99e6e06078713f684fee2466c91f677b303
treef5c5d5d877962cecee78612ab0ab260ac2d645e0
parent5b9c817dc7577b6d44acc94d73b9c77c52cda489
x11grab: Check the XQueryPointer return value

The paint_mouse_pointer() code uses XFixes to retrieve the cursor
coordinates, but XFixes gives no information about which screen the
pointer is on; this results in always drawing the cursor on the
captured screen even if the mouse pointer was on another screen.

For example, when capturing from screen 1 (i.e. -f x11grab -i ":0.1")
the cursor was being drawn in the captured image even when the mouse
pointer was actually on screen 0, which is wrong and visually confusing.

CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavdevice/x11grab.c