I have the following function bound to the Break key:
AddToFunc my_kill "I" Close
+ "I" my_prev
together with the following focus moving functions
AddToFunc my_home "I" Next [FrontPanel CirculateHit CirculateHitIcon]
my_deiconify
AddToFunc my_nexticon "I" Next [Iconic CurrentDesk] my_focus
+ "I" None [Iconic CurrentDesk] my_home
AddToFunc my_nexticon_s "I" Next [Iconic CurrentDesk CirculateHitIcon] my_focus
+ "I" None [Iconic CurrentDesk CirculateHitIcon] my_home
AddToFunc my_previcon "I" Prev [Iconic CurrentDesk] my_focus
+ "I" None [Iconic CurrentDesk] my_home
AddToFunc my_previcon_s "I" Prev [Iconic CurrentDesk CirculateHitIcon] my_focus
+ "I" None [Iconic CurrentDesk CirculateHitIcon] my_home
AddToFunc my_next "I" Next [!Iconic CurrentDesk] my_focus
+ "I" None [!Iconic CurrentDesk] my_nexticon
AddToFunc my_next_s "I" Next [!Iconic CurrentDesk CirculateHit] my_focus
+ "I" None [!Iconic CurrentDesk CirculateHit] my_nexticon
AddToFunc my_prev "I" Prev [!Iconic CurrentDesk] my_focus
+ "I" None [!Iconic CurrentDesk] my_previcon
AddToFunc my_prev_s "I" Prev [!Iconic CurrentDesk CirculateHit] my_focus
+ "I" None [!Iconic CurrentDesk CirculateHit] my_previcon
AddToFunc my_focus "I" Focus
+ "I" my_cursorwarp
AddToFunc my_cursorwarp "I" WarpToWindow 50p 50p /* Top left button on most */
+ "I" Current [*term] WarpToWindow 97 90 /* scrollbar */
+ "I" Current [xterm] WarpToWindow 3 90 /* sb on left */
+ "I" Current [dockit] WarpToWindow 50 50 /* FrameMaker */
+ "I" Current [xpsview] WarpToWindow 50p 100p
+ "I" Current [FrontPanel] WarpToWindow 50 50
The intent of all this is that when I kill a window the focus moves somewhere
sensible. This fails sometimes when the window I am about to kill is the only
window on the screen that does not have a CirculateSkip style . What should
happen is that the focus should find its way back to the FrontPanel window
(FvwmButtons). What I think is happening is that the Close in my_kill is being
done but the window doesn't go away until after the Prev in my_kill is executed.
The Prev in my_kill finds that window that is going to die and happily sets the
focus to it, it then dies and focus is left marooned.
Is there a way to stop execution of a function until after the Close has
happened? Failing that is there a clever way of making a window go-away before
the next line of a function runs? (FvwmBanner; wait FvwmBanner; does not count
as clever).
Cheers,
Tim Phipps.
--
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 Jun 06 1997 - 06:12:31 BST