🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Bob Doolittle Mon, 08 Apr 1991 17:03
Making X window-focus select screens
#2127
Author: Bob Doolittle
Date: Mon, 08 Apr 1991 17:03
34 lines
1988 bytes
I'm new to epoch, so I appologise if this question has already been asked.

First an observation:

Epoch seems to take on responsibility for a couple of things that seem
better left to the window-manager.

The first thing that I noticed is the "auto-raise-screen" feature.  Most
(all?)  window managers can optionally do this for you.  If I choose not to
do this, I'd rather not specify it again to each client in a
client-specific manner.  Is there some good reason that this was built into
Epoch?  I realize I can (setq auto-raise-screen nil), but why was this
feature implemented at all?

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, so it is confusing as to where my X
window-focus currently is.

Has anybody implemented a hack that makes Epoch behave more like you'd
expect with window/screen focus?

As with most comments like this, I've just listed the things I don't like
about Epoch, and none of the things I like.  I like Epoch a lot, and
listing all the things I like would make this message even longer, so I'll
spare you.  Suffice to say - Thanks!

--------
Bob Doolittle
Thinking Machines Corporation
rad@think.com
Re: Making X window-focus select screens
#2128
Author: Alan M. Carroll
Date: Mon, 08 Apr 1991 22:14
37 lines
2568 bytes
In article <9104081703.AA21554@avenger.think.com>, rad@THINK.COM (Bob Doolittle) writes:
> The first thing that I noticed is the "auto-raise-screen" feature.
> Is there some good reason that this was built into Epoch?

This feature is very useful to those of us who switch screens using
keystrokes instead of the mouse, e.g. through ^Z-4-b or ^Z-4-f.

> 
> 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 */
-- 
Alan M. Carroll          <-- Another victim of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads