[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
XGrabKey problems
Hi everyone,
Sorry for all the problems, it seems to always happen with gnome
desktop manager.
We changed XGrabKeyboard to XGrayKey as part of the focus
changes. When EnterNotify was changed to FocusIn in
ui_process_events, XGrabKeyboard caused problems with moving
the rdesktop window or using the menu in the upper left corner
(because the keyboard was still grabbed I guess).
I guess we have a few options here
1) Revert back to EnterNotify, LeaveNotify and GrabKeyboard.
2) Don't gray AnyKey, only grab the keys we want to send to the
server(which is the way mstsc.exe works).
I actually like ALT-TAB and ALT-ENTER events processed locally
and not sent to the sever.
Let me know what you think. I guess I didn't do enough testing :(
I'll experiment with grabbing some keys and see how it works with
gnome.
Thanks
Jay
notes
EnterNotify/LeaveNotify are events mainly used for changing the
mouse pointer when it moves over a special control.
XGrabKey shouldn't kill the app when it fails accoring to the
documentation. doh.