Because of problems with Xvesa I need to switch to Xorg, which causes some new problems.
Currently I'm starting X without any window manager. I don't want a window manager, because
users are no allowed anything besides the RDP client and I need to disable various stuff window
managers offer.
Then I'm starting my RDP-client. If the RDP-client terminates, I'm starting a modified version of
exittc (Shutdown, reboot, restart RDP).
I have good knowledge about general C programming and Windows API functions, but my knowledge
about X programming and FLTK is next to nil. The concepts here seem similar to Windows, so doing
basic stuff works, but I'm still struggling with advanced stuff.
With Xvesa everything was fine. After switching to Xorg, when the modified version of exittc is being
started there is no mouse cursor visible.
Somewhere I found a note stating this: "mouse cursor stays hidden until the first call to XDefineCursor()"
Because exittc is written for FLTK I'm having problems how to add a call that does XDefineCursor().
FLTK wants to add an abstraction layer to X, so how would you do this in FLTK?
I added this code:
window->cursor(FL_CURSOR_DEFAULT);
after
window->show(argc,argv);
This shows a mouse cursor as soon as the mouse is being moved inside the exittc window.
But initially the mouse cursor is hidden and you need some wild mouse movement until your
mouse cursor enters the exittc window, which is not acceptable for end users.
Probably I need to do something similar for the "X root window" or how this may be called.
Is this possible in FLTK and how to do it?
Any help or idea how to deal with this problem is appreciated.
Thanks in advance.