LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-29-2010, 05:35 AM   #1
samsung_sisc
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
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?
 
Old 09-29-2010, 07:11 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,204
Blog Entries: 3

Rep: Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433Reputation: 1433
Hi,

Welcome to LQ!

Quote:
Originally Posted by samsung_sisc View Post
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?
 
Old 09-29-2010, 11:54 PM   #3
samsung_sisc
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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.

Last edited by samsung_sisc; 09-29-2010 at 11:55 PM.
 
Old 10-03-2010, 11:06 PM   #4
samsung_sisc
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Please help me for this....
 
  


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
How to make VIM change cursor shape when it is in inserting mode. since1993 Linux - Newbie 1 10-01-2009 06:59 PM
How to capture Windows API Events sridhar_dct3 Linux - Software 1 10-18-2007 09:48 AM
Cannot locate cursor ID in X for capture script smudge|lala Programming 0 04-07-2006 08:26 PM
windows api in a linux distro???? ronanio Linux - Games 2 10-04-2005 08:57 AM
GIMP cursor shape ViNsAniTy Linux - Software 3 04-21-2004 09:08 PM


All times are GMT -5. The time now is 07:27 PM.

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