gstreamer/sys
Antonio Ospite 7554bd3916 ximagesrc: Draw the cursor only when it is active in the capturing region
Use XQueryPointer to check that the pointer is actually active inside
the capturing region.

This prevents drawing the cursor when the pointer is partially outside
of the captured region but not active inside the region; in particular
this avoids drawing the "window resize" cursor shapes to the captured
image when the mouse pointer crosses a window border.

NOTE that this is not only an optimization, this also happen to fix
a serious problem in multi-screen setups.

Because XFixes gives no information of what screen the pointer is on,
ximagesrc was 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. display-name=":0.1") the
cursor was drawn in the captured image even when the mouse pointer was
actually on screen 0, which is wrong and visually confusing.

https://bugzilla.gnome.org/show_bug.cgi?id=690646
2014-09-16 10:32:39 +03:00
..
directsound directsoundsink: WAVEFORMATEX is unsigned for 8 bit integers, and signed for others 2013-08-21 16:41:21 +02:00
oss oss: simplify probed caps before returning them 2014-06-13 09:52:03 +01:00
oss4 oss4: remove dead mixer code 2014-05-02 09:41:19 +01:00
osxaudio docs: remove outdated and pointless 'Last reviewed' lines from docs 2014-04-26 23:35:17 +01:00
osxvideo osxvideosink: remove legacy code for passing a window handle 2014-06-23 20:40:09 +02:00
sunaudio Don't use setlocale in plugins() 2013-09-01 21:18:38 +01:00
v4l2 v4l2allocator: O_CLOEXEC needs _GNU_SOURCE 2014-09-16 10:20:22 +03:00
waveform gst: Add better support for static plugins 2013-04-15 15:54:11 +02:00
ximage ximagesrc: Draw the cursor only when it is active in the capturing region 2014-09-16 10:32:39 +03:00
Makefile.am v4l2: Fix typo V4L_DIR intead of V4L2_DIR 2014-03-15 18:41:16 +01:00