linux - c++ X11 global change cursor -


i'm writing mouse emulation program linux based on input external hardware (leap motion controller). proper operation, want change shape of cursor convey status information user related operation of cursor. i'm writing user space program handle this. mouse movement , mouse clicks handled using xtest library, right can't find way change shape of cursor.

using xdefinecursor() i've been able change cursor custom shape on window owned program, need in full graphical environment, since program remain hidden in background of time.

i'd prefer not write device driver , stay in user space if possible. i'd prefer not have change code display manager (ie unity or lxde).

edit:
hardware leap motion controller. need display user if still in sensor's range, or outside range.

you can watch cursor changes xfixes protocol , modify cursor each time changed adding graphics whatever window tried set ( selectcursorinput/getcursorimage/cursornotify event)


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -