Article View: gnu.epoch.misc
Article #2100Re: auto-raise vs auto-focus
From: Tom LaStrange
Date: Thu, 14 Mar 1991 13:22
Date: Thu, 14 Mar 1991 13:22
29 lines
1912 bytes
1912 bytes
I just brought epoch up in a debugger and watched the Focus and Enter/Leave events when doing various things. The input focus does indeed move between windows when the mouse moves. But, as soon as I hit F1, which I have tied to do an f.raise, epoch gets a FocusIn event and sets the X_focus variable to 2, indicating click to type. I have added two lines to x11term.c that seem to fix the problem. I have tested it with swm and olwm and it seems to do the right thing. Here are the diffs, I did not modify the event handling between the DENYS_MOTION_COMPRESSION ifdefs so there's probably more work to be done. This of course is an unofficial patch although I have sent it to the epoch gods. -- Tom LaStrange toml@Solbourne.COM *** x11term.c.orig Thu Mar 14 08:09:56 1991 --- x11term.c Thu Mar 14 08:10:57 1991 *************** *** 1576,1581 **** --- 1576,1583 ---- break; #else /* not DENYS_MOTION_COMPRESSION */ case EnterNotify : + if (event.xcrossing.focus) + X_focus = 0; case LeaveNotify : if (! event.xcrossing.focus || X_focus == 2) break; case FocusIn :
Technical Details
Message-ID:
<TOML.91Mar14082220@marvin.Solbourne.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stan!marvin!tomlReferences:
<EBERSMAN.91Mar12201129@cfmartin.uu.net> <1991Mar13.150000.9096@m.cs.uiuc.edu> <125488@uunet.UU.NET> <1991Mar14.013347.7236@csis.dit.csiro.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,834ed3e4a8d5ac50 X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-03-14 22:36:46 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!stan!marvin!toml From: toml@marvin.Solbourne.COM (Tom LaStrange) Newsgroups: gnu.epoch.misc Subject: Re: auto-raise vs auto-focus Message-ID: <TOML.91Mar14082220@marvin.Solbourne.COM> Date: 14 Mar 91 13:22:20 GMT References: <EBERSMAN.91Mar12201129@cfmartin.uu.net> <1991Mar13.150000.9096@m.cs.uiuc.edu> <125488@uunet.UU.NET> <1991Mar14.013347.7236@csis.dit.csiro.au> Sender: toml@Solbourne.COM (Tom LaStrange) Distribution: gnu Organization: Solbourne Computer, Inc. Lines: 29 In-Reply-To: peterf@csis.dit.csiro.au's message of 14 Mar 91 01:33:47 GMT