mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
7554bd3916
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 |
||
---|---|---|
.. | ||
gstximagesrc.c | ||
gstximagesrc.h | ||
Makefile.am | ||
ximageutil.c | ||
ximageutil.h |