I am fairly new to c programming, but I wanted to give myself a challenge. I want to make a program that outputs Pointer position and what type it is (arrow, text[I], moving cross, etc...)

What i have been seeing everything is platform dependent, but i would like to make this program run on linux and windows. But, if i did have to choose one, i would pick linux.

I have looked a little bit into xlib, but it is a little confusing and i can not figure out how to get the "type" of cursor.

Any help would be much appreciated.