rms@SUGAR-SMACKS.AI.MIT.EDU.UUCP (06/11/87)
In X10, a window gets a FocusChange event when it gets the focus, but gets nothing when the focus moves elsewhere. As far as I can tell there is no way a program can arrange to display its window in a special way iff it is getting keyboard input. I hope X11 can do better.
newman@ATHENA.MIT.EDU (Ron Newman) (06/11/87)
I hope X11 can do better. This isn't true. In X10, you get a FocusChange event with detail = EnterWindow when the window gets the focus, and another FocusChange event with detail = LeaveWindow when the window loses the focus. At least that's what the X10 protocol spec says. If your server doesn't do this, it's a buggy server (which isn't unthinkable). In X11, there are separate events called FocusIn and FocusOut, which have the same effect. /Ron Newman
jg@jumbo.UUCP (06/11/87)
I believe that between FocusIn and FocusOut events and detailed information in EnterWindow and LeaveWindow events in V11 you can unambiguously determine if input will be sent to your window.... - Jim