Re: FVWM: Focus problem / Mail hotkey

From: Tim Phipps <tim_at_quadrics.com>
Date: Thu, 12 Nov 1998 15:09:48 +0000

FlipFocus is meant to be used only in conjunction with Prev. e.g.
+ "I" Prev [CurrentDesk !Iconic] FlipFocus
For what you are doing you may as well use Focus here. FlipFocus is a
way of changing the order of the windowlist so that Prev [] FlipFocus,
Prev [] FlipFocus toggles back and forth between two windows.

> - Would it be possible to write a smarter function which combines the
> functionality of these two functions? That way I could have on
> hotkey which toggles between the current window and the mail window.

This is where None comes into its own:

# function to toggle iconic state of Mutt window
AddToFunc ToggleMail "I" Next [Mutt !Iconic] HideMutt
+ "I" None [Mutt !Iconic] ShowMutt
# function to iconify Mutt
AddToFunc HideMutt "I" Iconify
+ "I" Prev [CurrentDesk !Iconic] Focus
# function to de-iconify or start Mutt
AddToFunc ShowMutt "I" Next [Mutt] Iconify
+ "I" None [Mutt] Exec mutt
+ "I" None [Mutt] Wait Mutt
+ "I" Next [Mutt] Focus

Hope this helps,
Tim.
--
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 Thu Nov 12 1998 - 09:11:11 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST