David E Brooks writes:
> Irene's message reminded me of something I would very much like to
> be able to do in FVWM: Duplicate the ALT+TAB behavior of Windows 95
> as much as possible. The closest I've been able to come is to
> specify
> Key Tab A M Next [*] Focus
> in my .fvwmrc (well, okay, .fvwm95rc, but the behavior seems to be
> the same in stock FVWM), but this only seems to alternate between
> the two most recent windows (most of the time, there are
> exceptions). It's close enough when I'm working with two windows,
> and something of a headache if a third window comes into play.
> For those unaware, Windows 95's (and it's relative Windows NT 4.0)
> ALT+TAB works like this: When the ALT key is depressed, a box
> appears in the middle of the screen with an icon for each window.
> Keeping ALT held and tapping TAB will advance an outline cursor
> within the window to the next icon in the list. Releasing ALT
> raises the window and gives it focus. The ordering is important
> too. Non-iconized windows are first in the list, followed by
> iconized windows.
> Is there anything else I can try in my .fvwmrc to duplicate some of
> this behavior, or should I investigate writing a module to do this?
> (Starting with FvwmWinList as a starting point, of course). I could
> care less about looking like Windows 95--It's the functionality I'm
> after.
I got a little bit more of the desired behaviour by using FvwmIconMan.
Here are the relevant parts of my .fvwm2rc:
Key Tab A M Module FvwmIconMan Transient
*FvwmIconMan*action Key Tab A bif Next 3, gotobutton 0, select, ret, gotobutton Next, select
*FvwmIconMan*action Key Return N sendcommand "Iconify -1, Focus, WarpToWindow 42p 10p"
*FvwmIconMan*action Key Escape N quit
#
*FvwmIconMan*transient*buttongeometry 420x0
*FvwmIconMan*transient*action Key Return N sendcommand "Iconify -1, Focus, WarpToWindow 42p 10p", quit
This shows a list of windows under the mouse cursor if you hit (and
release) Alt-Tab. Then, you can cycle through the list with Tab and
select a window with Return. You shouldn't use Alt-Tab to cycle
through the windows, because fvwm sees this and tries to start another
FvwmIconMan. Maybe one can avoid that by dynamically reconfiguring
the key bindings, but I didn't bother.
As was already said, it's probably necessary to change fvwm's
internals to make it react on the pressing of Alt alone, and I'm not
sure if I really want to use my Alt key for a single feature.
Hope this helps,
Rainer
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue Apr 21 1998 - 04:01:17 BST