`ximagesrc` does not draw mouse cursor when window, catched with xname, is moved.
Describe your issue
I am using ximagesrc
to stream specific window using xname property, but I have some trouble with mouse cursor when windows initial position changes.
Expected Behavior
Observed Behavior
Setup
- Debian 9/11
- Gstreamer 1.16/1.20
- XFCE
- Dual-screen
Steps to reproduce the bug
- open terminal
- run
xclock
- run `gst-launch ximagesrc xname="xclock" ! ximagesink``
How reproducible is the bug?
When xclock windows is moved then the mouse pointer is not well drawn in video, the offset corresponds to the movement of the window. If the xclock window is too far from its starting position, the cursor is no longer drawn.
Screenshots if relevant
Screen 1 Screen 2
+---------------------------------+---------------------------------+
| +---------+ | |
| | | | gst-launch |
| | | | +---------+ |
| | | | | | |
| | +---------+ | | | |
| | | | | | | | |
| +----|----+ | | | | |
| | X | | | X | |
| | | | +---------+ |
| | | | |
| +---------+ | |
+---------------------------------+---------------------------------+
The X represent the mouse pointer: it is drawn with an offset.
Additional Information
Question asked on gstreamer-devel: https://lists.freedesktop.org/archives/gstreamer-devel/2022-December/080713.html