Re: FVWM: WindowList, WarpToWindow and Focus

2014-07-05 Thread Walter Alejandro Iglesias
Thanks Dominik.

I've realized too that not using WarpToWindow in WindowListFunc windows doesn't
get the focus when switching desktops (Sloppy or MouseFocus), I mean selecting
a window in another desktop from the WindowList.


Walter





FVWM: WindowList, WarpToWindow and Focus

2014-07-04 Thread Walter Alejandro Iglesias
Hello,

Two things I've noticed.


First
-

Using MouseFocus and WindowList function without WarpToWindow, i.e.:

DestroyFunc WindowListFunc
AddToFunc   WindowListFunc
+ I Iconify off
+ I FlipFocus
+ I Raise
#+ I WarpToWindow 5p 5p

Key Tab A M WindowList

Style * MouseFocus

or

Style * FPEnterToFocus, FPLeaveToUnfocus

I can cycle the focus over all windows using the keyboard (Alt+Tab).
But if I move the pointer with my mouse over the background (no window
focused) the WindowListFunc is unable to focus again any window.

The curious thing is this behaviour isn't strict, some times it gives
the focus to some window after two or three Alt+Tab attempts, some times
it doesn't, some times it just raises the stacked window but without
giving it the focus.  Once *magically*, after some Alt+Tab attempts,
some window gets the focus, MouseFocus allows me to cycle the focus over
windows normally again with the pointer staying on root.

It doesn't happen using i.e.:

Key Tab A M Next (CurrentPage) Focus

So perhaps it's a WindowList issue.


Second
--

This time commenting out Raise from WindowListFunc:

AddToFunc   WindowListFunc
+ I Iconify off
+ I FlipFocus
#+ I Raise
+ I WarpToWindow 5p 5p

Windows are raised anyway, unless I comment out the WarpToWindow too.

AddToFunc   WindowListFunc
+ I Iconify off
+ I FlipFocus
#+ I Raise
#+ I WarpToWindow 5p 5p

Using this:

Key Tab A M Next (CurrentPage) WarpToWindow 5p 5p

Windows are raised too.  I thought that the window was raised by
WarpToWindow but using this last Key binding with ClickToFocus it
doesn't.  Besides, if WarpToWindow raises why to include Raise in
default WindowListFunc?