LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Capture cursor shape using x-windows API? (https://www.linuxquestions.org/questions/linux-newbie-8/capture-cursor-shape-using-x-windows-api-835148/)

samsung_sisc 09-29-2010 05:35 AM

Capture cursor shape using x-windows API?
 
How do capture current cursor shape using X11/X-Windows?
How do get current cursor image (RGB or else)using X11/X-Windows?

onebuck 09-29-2010 07:11 AM

Hi,

Welcome to LQ!

Quote:

Originally Posted by samsung_sisc (Post 4112407)
How do capture current cursor shape using X11/X-Windows?
How do get current cursor image (RGB or else)using X11/X-Windows?

I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem.

You need to define the desired actions better. What exactly are you trying to do? We will aid you when you help yourself to a solution. Provide us with what you have attempted and then maybe someone will be able to assist.

Why do you need to capture the cursor shape? How will the signal for the current cursor image service you?

What are you attempting to do?
:hattip:

samsung_sisc 09-29-2010 11:54 PM

It looks like VNC, but viewer can't control the actual PC because more then one user has capable to see that PC at a time.
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, get the cursor coordinates using XQueryPoint(), then i am combined both Desktop and Cursor images. If I follow in this way cursor shape is fix for all windows, but in actual PC cursor is change window to window. Users also required to see what cursor is in that PC.

samsung_sisc 10-03-2010 11:06 PM

Please help me for this....


All times are GMT -5. The time now is 11:06 PM.