Getting Mouse Position

Baha' Ashour bashour at
Wed Feb 7 05:29:48 PST 2007

Hello All,

How can i get the position of the mouse cursor?
I'm using the framebuffer to draw something on the screen(desktop), and i want to get the position of the cursor.

ncurses give the cursor position in the terminal, but i need on the screen(desktop).

I'm using c language, and suse 10.1 linux

Baha' Ashour
Software Engineer
Infinite Tiers, Inc. |
O: +(972) 9 233-7726 | C: +(972) 599 836-916
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the xorg mailing list