🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #2045

Re: Making X window-focus select screens

#2045
From: Bob Doolittle
Date: Wed, 10 Apr 1991 15:50
38 lines
2091 bytes
	> 
	> The second thing which seems "un-X-like" is the window focus.  I happen to
	> dislike "click-to-type".  So far, I've not found an easy way to make X
	> window-focus map to Epoch screen-focus.  One byproduct of this seems to be
	> that when I move my cursor out of Epoch entirely (say to an xterm), I have
	> two solid cursors on my screen
	
	The behaviour you want should be the default behaviour. I run an Epoch
	under GWM, not click-to-type, and moving the mouse from one screen to
	another switches the current screen, and moving the mouse out of any
	screen causes the text cursor to switch to a hollow block. Try running
	an Epoch with the -q flag to test it.
	
	On the other hand, there is a bug involving passive grabs on Epoch
	screens, where Epoch thinks it has the focus until another FocusOut
	event. This happens when the WM traps a keystroke on an Epoch screen.
	It seems to be fixed with the following patch to x11term.c, around
	line 1596.
	
		    case FocusOut:
	                /* start of change */
	                if (
	                    (event.type == FocusOut || event.type == FocusIn)
	                    && event.xfocus.mode != NotifyNormal
	                   ) break;
	                /* end of change */

You are exactly right.  Focus worked as expected until I iconified an epoch
screen with my window manager.  Then it started to behave like
"click-to-type".  Your change corrected the behavior.

Thanks!

--------
Bob Doolittle
Thinking Machines Corporation
rad@think.com
Technical Details
Message-ID: <9104101550.AA24990@avenger.think.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,f11e648938b0a0b1
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-04-11 00:58:09 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: rad@THINK.COM (Bob Doolittle)
Newsgroups: gnu.epoch.misc
Subject: Re: Making X window-focus select screens
Message-ID: <9104101550.AA24990@avenger.think.com>
Date: 10 Apr 91 15:50:12 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 38