Focus to new windows automatically.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 08 Aug 2012 22:24:11 +0300
changeset 499 9e77ac0fc429
parent 498 ee4c76abe7a8
child 500 841b5dcf3197
Focus to new windows automatically.
.fvwm/config
--- a/.fvwm/config	Wed Aug 08 21:47:19 2012 +0300
+++ b/.fvwm/config	Wed Aug 08 22:24:11 2012 +0300
@@ -118,6 +118,19 @@
 MoveThreshold 3
 Style "*" SloppyFocus, MouseFocusClickRaises
 
+*FvwmEvent-NewWindow: Cmd
+*FvwmEvent-NewWindow: PassId
+*FvwmEvent-NewWindow: StartDelay 10
+*FvwmEvent-NewWindow: add_window MyFuncFocusWindow
+
+DestroyFunc MyFuncFocusWindow
+AddToFunc MyFuncFocusWindow
++ I FlipFocus
++ I WarpToWindow 50 50
+
+AddToFunc StartFunction I Module FvwmEvent
+AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
+
 ################################################################
 # Program Styles.