On 19/09/14 11:35, Antonio Ospite wrote:
The paint_mouse_pointer() code uses XFixes to retrieve the cursor
coordinates, but XFixes gives no information about what 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.
Use XQueryPointer to check that the pointer is actually on the screen
which is being captured and if it is not, don't draw the cursor.
Also, don't follow the mouse or redraw the region when the pointer is on
another screen.
Signed-off-by: Antonio Ospite <[email protected]>
---
Hey Luca, let me know if/when you manage to test this yourself, some more
feedback is always welcome.
Last night I was too tired and for some reason this patch wasn't in my
pending queue...
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel