I'm trying to set a `hotkey' for checking my mail (a shell window
called 'Mutt'). I would like it to pop up my mail window and focus it.
Afterwards, it should iconify the mail window again and return focus
to whatever window I was working in before.
The closest I could get is this:
AddToFunc PopWindow "I" Iconify
+ "I" Focus
AddToFunc PushWindow "I" Iconify
+ "I" FlipFocus
key n A MC Current [Mutt !Iconic] PushWindow
Key m A MC Next [Mutt Iconic] PopWindow
But this solution suffers from the following problems:
- The FlipFocus in the PushWindow function doesn't always work.
Depending on the position of my mouse pointer, focus is either
correctly set to the window I was working in *or* to the iconified
mail window.
- 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.
BTW: I am using `SloppyFocus' on all my windows.
Thanks in advance for your help,
-Ives
______________________________________________________________________
Ives Aerts (R&D Software engineer) Sony DNSE-Brussels
Ives.Aerts_at_sonycom.com St.Stevens Woluwestr. 55
`IBM definition SY-34378: B-1130 Brussels, Belgium
A signature consists of sequences of PHONE : +32 2 724 86 11
non-blank characters separated by blanks' FAX : +32 2 724 86 88
--
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 Fri Nov 06 1998 - 03:02:33 GMT