How do capture cursor shape using X-Windows APIs?
I have implemented a tool like VNC that means one desktop user observing another Desktop what he doing there.
But here observer (viewer) can't control the actual PC because more than one user has capable to see same PC at a time.
Here I am capturing Desktop using XGetImage(), but that captured Desktop image (RGB) don't give the cursor. In my requirement I have to show that cursor. Right now I took normal cursor (arrow) data in RGB and find the cursor coordinates using XQueryPoint(), then i am combined both Desktop image and Cursor image. If I follow in this way cursor shape is fix for all windows, but in actual PC cursor is change window to window. Observers (viewers) canít observe that cursor shape change.
How can I capture current cursor shape using X11/X-Windows?
If it possible
How do we get current cursor image (RGB or else) using X11/X-Windows?