Discussion:
FVWM: WindowList, WarpToWindow and Focus
Walter Alejandro Iglesias
2014-07-04 09:11:37 UTC
Permalink
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?
Dominik Vogt
2014-07-04 21:51:39 UTC
Permalink
Post by Walter Alejandro Iglesias
First
-----
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.
Key Tab A M Next (CurrentPage) Focus
So perhaps it's a WindowList issue.
I'll check that problem later, but I can well imagine that
MouseFocus does not work well with the FlipFocus command.
Post by Walter Alejandro Iglesias
Second
------
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
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?
I can confirm this. Raising is hard coded into the WarpToWindow
command, and that's not documented. I'll add the option "!raise"
to the WarpToWindow command to circumvent this.

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Walter Alejandro Iglesias
2014-07-05 09:38:21 UTC
Permalink
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

Loading...