in message <[EMAIL PROTECTED]>,
wrote fvwm-w thusly...
>
> On Sun, Oct 03, 2004 at 12:04:27AM -0400, Parv wrote:
> > I used to be able to switch to thee last focused predictably &
> > consistently in 2.5.10 w/ the following functions & key binding...
> > 
> >   key f  A   4  Function switch-to-last
> > 
> >   DestroyFunc  WindowListFunc
> >   AddToFunc    WindowListFunc
> >   +  I Iconify false
> >   +  I WindowShade false
> >   +  I Raise
> >   +  I FlipFocus
> >   +  I WarpToWindow 50 50
> > 
> >   DestroyFunc  window-list
> >   AddToFunc    window-list
> >   +  I WindowList Root c c Sticky,  OnTop \
> 
> Note: options should be separated by commas.  Whitespace
> separators may stop working some day in the future.

(Fvwm 2.5.12 & 2.5.10 are being compared below.)

In both 2.5.10 & 2.5.12, use of commas to separate the options causes
the WindowList to appear with full geometry information and
SelectOnRelease has not effect.  It is as if WindowList was invoked
w/o any parameters.  I tried 3 variations ...

  DestroyFunc  window-list
  AddToFunc    window-list
  +  I WindowList Root c c Sticky \
    , OnTop   NoGeometryWithInfo   NoDeskNum    NoNumInDeskTitle \
      MaxLabelWidth 30   IconifiedAtEnd    CurrentAtEnd \
      $*

  DestroyFunc  window-list
  AddToFunc    window-list
  +  I WindowList Root c c Sticky \
    , OnTop , NoGeometryWithInfo , NoDeskNum , NoNumInDeskTitle \
    , MaxLabelWidth 30 , IconifiedAtEnd , CurrentAtEnd \
    , $*

  DestroyFunc  window-list
  AddToFunc    window-list
  +  I WindowList Root c c Sticky \
      OnTop , NoGeometryWithInfo , NoDeskNum , NoNumInDeskTitle \
    , MaxLabelWidth 30 , IconifiedAtEnd , CurrentAtEnd \
    , $*


In 2.5.12, following syntax brings up WindowList w/ "Desk: 0" title,
current window at the end, and rest of windows in focus-LIFO order...

  DestroyFunc  window-list
  AddToFunc    window-list
  +  I WindowList Root c c Sticky \
      OnTop   NoGeometryWithInfo   NoDeskNum   NoNumInDeskTitle \
      MaxLabelWidth 30   IconifiedAtEnd   CurrentAtEnd \
      $*


> >     NoGeometryWithInfo  NoDeskNum  NoNumInDeskTitle \
> >     MaxLabelWidth 30 IconifiedAtEnd \
> >     $*
> > 
> >   DestroyFunc  switch-to-last
> >   AddToFunc    switch-to-last
> >   +  I Function window-list  SelectOnRelease Super_L
...
> > Above generates only the window list; no window is selected on
> > release of Super_L.
> 
> This config should never have worked (and it does not work here with
> 2.5.10) ...  You need to have the window that had the focus last at
> the top of the list.  The CurrentAtEnd option provides this feature.

You are quite correct about the use of CurrentAtEnd, of course.
During experimenting w/ the odd focusing behaviour of version 2.5.11,
i forgot to add it in one place or the other.


> If that does not help, post a minimal config that shows the
> problem.

There definitely is(are) some change(s), related to Style/focus, which
affects the order of WindowList which was missing from 2.5.10 but
is(was) present in 2.5.12(2.5.11).


Below is the the combined configuration snippet w/ working functions
(as i desire) but apparently in incorrect syntax, and problem causing
style definition(s).


 - Parv


####  K E Y  B I N D I N G

key l  A    4  Function window-list-sorted
key Tab  A  4  Popup root-menu

key Left   A    4  GotoPage -1p  0p
key Right  A    4  GotoPage +1p  0p
key Up     A    4  GotoPage  0p -1p
key Down   A    4  GotoPage  0p +1p

key F7  T  A  Function deiconify-func RaiseLower
key F7  W  S  Function deiconify-func RaiseLower
key F7  A  4  Pick deiconify-func RaiseLower

key F12  A  S  Restart

key f    A  4  Function switch-to-last

####  F U N C T I O N S

DestroyFunc  StartFunction
AddToFunc    StartFunction
+ I Module FvwmAuto 2050 Raise
+ I Module FvwmAuto * StartsOnPage 0 1
+ I Module FvwmPager * *
+ I Module FvwmDebug --log /home/parv/log/misc/fvwm.debug -d 4


# For some SM-s (like gnome-session) there is an internal background setter.
AddToFunc    SessionInitFunction
+  I Nop

DestroyFunc  EWMHActivateWindowFunc
AddToFunc    EWMHActivateWindowFunc
+  I WindowListFunc

DestroyFunc  WindowListFunc
AddToFunc    WindowListFunc
+  I Function deiconify-func Raise
+  I FlipFocus
+  I WarpToWindow 50 50


DestroyFunc  window-list
AddToFunc    window-list
+  I WindowList Root c c Sticky \
    OnTop   NoGeometryWithInfo   NoDeskNum   NoNumInDeskTitle \
    MaxLabelWidth 30   IconifiedAtEnd   CurrentAtEnd \
    $*

DestroyFunc  switch-to-last
AddToFunc    switch-to-last
+  I Function window-list  SelectOnRelease Super_L

DestroyFunc  deiconify-func
AddToFunc    deiconify-func
+  I Iconify false
+  I WindowShade false
+  I $0

DestroyMenu  root-menu
AddToMenu    root-menu  "holy cow!"  Title
+  &xvt           Exec $XVT
+  ""             Nop
+  &restart       Restart
+  "start tvtwm"  Restart tvtwm -f ${HOME}/cf/x/tvtwm.cf
+  "start twm"    Restart twm
+  &quit          Quit
+  ""             Nop
+  &kill          Function xkill

####  S T Y L E S

Style  *  FPLenient \
  , FPClickRaisesFocused      , FPClickRaisesUnfocused \
  , FPClickDecorRaisesFocused , FPClickDecorRaisesUnfocused \
  , FPClickIconRaisesFocused  , FPClickIconRaisesUnfocused \
  , FPGrabFocus , FPReleaseFocus \
  , FPAllowRaiseClickFunction \
  , ClickToFocusPassesClickoff \
  , ClickToFocusRaises , MouseFocusClickRaises \
  , FPFocusByFunctionWarpPointer \
  , MouseFocus

Style *  DecorateTransient \
  , DontLowerTransient \
  , RaiseTransient \
  , StackTransientParent \
  , StartsOnPageIncludesTransients

Style  *  MinOverlapPercentPlacement
Style  *  MinOverlapPercentPlacementPenalties   3 1 0 0

Style  new-focus  MouseFocusClickRaises , ClickToFocusRaises , GrabFocus \
  , DontLowerTransient , RaiseTransient , GrabFocusTransient

Style  XTerm Color grey75/dodgerblue4 , HandleWidth 2 \
  , StartsRaised , TitleAtRight , UseStyle new-focus , GrabFocus

Style  Fvwm*  Sticky , Layer 4 , NoHandles , WindowListHit , !Borders \
  , SloppyFocus , !Maximizable , StartsLowered \
  , ParentalRelativity


-- 

--
Visit the official FVWM web page at <URL:http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to