Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ukma!nrl-cmf!ames!elroy!cit-vax!ucla-cs!zen!ucbvax!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: hacking on uwm (V11) Message-ID: <871124075141.7.RWS@KILLINGTON.LCS.MIT.EDU> Date: Tue, 24-Nov-87 07:51:00 EST Article-I.D.: KILLINGT.871124075141.7.RWS Posted: Tue Nov 24 07:51:00 1987 Date-Received: Sat, 28-Nov-87 00:55:44 EST References: <6037@jade.BERKELEY.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 29 Date: 23 Nov 87 20:41:01 GMT From: violet.berkeley.edu!jkh@jade.Berkeley.EDU (Jordan K. Hubbard) Let me know if I'm wrong, but by default the focus is in whatever window contains the pointer, yes? So, wouldn't it follow to assume that a window would get FocusIn and FocusOut events for this? Nope. Quite possible we blew it here (see also fix #56). The thinking at the time was that adding a focus boolean to enter/leave events would suffice, but it hasn't been working out that way. I get a FocusIn when I do an XSetInputFocus on my window, but when I do the SetFocus on another window afterwards, I get no FocusOut on the original! Yuck! So submit a bug report. Just how do I see the Enter/Leaves for everybody? uwm already selects Substructure{Notify,Redirect}Mask on the RootWindow, As top-level windows get created, select for enter/leave on them. How do I know when I leave one sibling for another? No events are generated for the root window, that's for sure. Correct.