Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 10-06-2010, 09:58 AM   #1
LQ Newbie
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture cursor shape using x-windows API? samsung_sisc Linux - Newbie 3 10-04-2010 12:06 AM
How to make VIM change cursor shape when it is in inserting mode. since1993 Linux - Newbie 1 10-01-2009 07:59 PM
Capturing Keystrokes in linux. APIs or System calls to capture keyboard strokes abhinav.zoso Programming 3 01-10-2009 12:14 PM
Cannot locate cursor ID in X for capture script smudge|lala Programming 0 04-07-2006 09:26 PM
GIMP cursor shape ViNsAniTy Linux - Software 3 04-21-2004 10:08 PM > Forums > Linux Forums > Linux - Desktop

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration