Article View: gnu.epoch.misc
Article #2043Re: Making X window-focus select screens
From: Bob Doolittle
Date: Tue, 09 Apr 1991 18:06
Date: Tue, 09 Apr 1991 18:06
26 lines
1764 bytes
1764 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.
However you switch screens, your window manager will see an "Enter" event
when the mouse enters the X window. It can then perform the auto-raise,
should you so desire. It should be left up to the window manager. Having
each client specify it in non-standard and incompatable ways only leads to
confusion, I'm afraid.
P.S. If you *do* like auto-raise, the function cursor-to-screen should
deiconify the window (if necessary) when it warps the cursor, otherwise you
get strange behavior (cursors warping to empty space). Here is a modified
cursor-to-screen for those of you who like this feature.
(defun cursor-to-screen (scr)
(interactive)
(when auto-raise-screen
(if (not (nth 6 (epoch::screen-information)))
(epoch::iconify-screen scr))
(raise-screen scr))
(epoch::warp-mouse (/ (epoch::screen-width scr) 2) 0 scr))
Technical Details
Message-ID:
<9104091806.AA15560@gandalf.think.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbageShow 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-09 15:17:21 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: <9104091806.AA15560@gandalf.think.com> Date: 9 Apr 91 18:06:19 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26