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

Notices

Reply
 
Search this Thread
Old 10-06-2010, 08:58 AM   #1
samsung_sisc
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?
 
  


Reply


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-03-2010 11:06 PM
How to make VIM change cursor shape when it is in inserting mode. since1993 Linux - Newbie 1 10-01-2009 06:59 PM
Capturing Keystrokes in linux. APIs or System calls to capture keyboard strokes abhinav.zoso Programming 3 01-10-2009 11:14 AM
Cannot locate cursor ID in X for capture script smudge|lala Programming 0 04-07-2006 08:26 PM
GIMP cursor shape ViNsAniTy Linux - Software 3 04-21-2004 09:08 PM


All times are GMT -5. The time now is 01:19 AM.

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