On Thu, 12 Jan 2006, Mikhael Goikhman wrote:

On 13 Jan 2006 00:29:52 +0800, Joey Watson wrote:

thanks for you answer my question. I am not familiar with fvwm config file
grammar.
but I think maybe you misunderstand what I mean.

I mean that I want automatically set focus to the application what called by
gmrun.

"Style gmrun GrabFocus" seems make gmrun get focus.

You may either always pass a focus to any new window: "Style * GrabFocus",
or implement the solution from FAQ #3.18.

 http://fvwm.org/documentation/faq/#3.18


You can use FvwmEvent to change the style when gmrun gets focus:

*FvwmEvent: Cmd Function
*FvwmEvent: focus_change FocusChangeStyle

AddToFunc FocusChangeStyle I None (Focused) Break
+ I ThisWindow (Gmrun) Style *  GrabFocus
+ I TestRc (!Match) Style * !GrabFocus

Module FvwmEvent


/Viktor

Reply via email to