LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How do capture cursor shape using X-Windows APIs? (https://www.linuxquestions.org/questions/linux-desktop-74/how-do-capture-cursor-shape-using-x-windows-apis-836535/)

samsung_sisc 10-06-2010 08:58 AM

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?


All times are GMT -5. The time now is 09:46 PM.