How do capture cursor shape using X-Windows APIs?

Prudhvi Raj m.prudhvi at gmail.com
Thu Oct 7 20:46:00 PDT 2010


Hi,

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?


Thanks & Regards
Prudhvi Raj Kumar M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20101008/2082cadd/attachment.html>


More information about the xorg mailing list