Thomas Adam replay to me in private message with suggestions. I wish to report
what I get currently.

On 2012-08-08, Oleksandr Gavenko wrote:

> First I get inconvenience when start using gmrun (Win+R like in Windows app
> which prompt command to execute with completion).
>
> But I found annoying to move mouse or to switch focus by 'FocusWindow'
> (Alt+TAB) to 'gmrun' app.
>
This completely resolve my issue this gmrun:

  Style whatever GrabFocus

> I have same issue when call "Save as..." and "Open file..." like dialog in
> Firefox, etc.
>
This partially resolve my issue in up quotation:

  Style * GrabFocusTransient

Why partially?

I start gaming with this stile in different conditions.

First that differ from FvwmEvent solution is that I lose:

  WarpToWindow 50 50

Also GrabFocusTransient have bad job with setting like:

  Style "goldendict"        StartsOnPage 3 1 2, SkipMapping

When I start "goldendict" app by:

  AddToMenu MenuMy Media Title
  + Goldendict      Exec  exec goldendict

I don't get focus of goldendict app and also don't switch to it if I am not at
page 1 2 of desktop 3.

> So I read manual and FAQ. FAQ was useful:
>
I bad read manual. There are many parts where written about focus. For example
I must find this one without asking at this list:

  Grabbing the focus when a new window is created

>   *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
>
> So now any new window automatically get focus.
>
As I describe above GrabFocusTransient have 2 issues (for me). So I stick with
solution from FAQ but would like to hear another option (I think FvwmEvent
take some extra CPU power instead of built-in Fvwm solution...).

> Does this setting provide behaviour same as in Windows?
>
After using for two days look like so...

> That part of desktop environment responsible for such behaviour (I am noob, is
> it session manager or windows manager or what)?
>
I don't know right answer but build-in Fvwn features allow near good solution.
And with external but standard FvwmEvent module a full solution.

> I try to break this solution by:
>
>   $ xterm
>   $ xmessage Hi
>   $ /usr/lib/notification-daemon/notification-daemon &
>   $ notify-send -t 10 Hi
>
> After xmessage I lose focus, but after notify-send not. Why?
>
> How can I control this by styling in Fvwn and programmatically in C lang?
>
Still will be happy if some one answer this question.


> I use:
>
>   Style "*" SloppyFocus, MouseFocusClickRaises
>
Note I experiment with combining GrabFocusTransient and SloppyFocus together:

  Style "*" SloppyFocus, GrabFocusTransient

they work greate together.

-- 
Best regards!


Reply via email to