I am thinking about an incompatible change in the Next and Prev
commands.  The other conditional commands that start looking for a
new window from the currently focused window already work this
way:

 - When the conditional command is run without a context window,
   it takes the focus window as a reference point.
 - If it is run with a context window, that is used instead of
   the focus window.

This allows many wonderful things, for example:

  Next Next Focus
  WindowId ... Next Focus

but breaks certain setups.  It might affect actions bound to a
window menu item (although I can't think of anything that would
require running Next or Prev) and nested complex functions:

  AddToFunc foo
  + I Next bar

  AddToFunc bar
  + I echo $w
  + I Next echo $w

I need this especially in FvwmProxy to to keep its own idea of a
selected window and to run some conditional commands on it.  This
is a hypothetical FvwmProxy setup I have in mind:

  Key Tab A M circulate_proxy_window Next
  Key Tab A SM circulate_proxy_window Prev

  AddToFunc circulate_proxy_window
  + I SendToModule FvwmProxy $0 (CurrentPage) select_proxy_window

  AddToFunc select_proxy_window
  + I SendToModule FvwmProxy Select $w

It should work like this:

 - User presses Alt-Tab.
 - Fvwm sends "Next (CurrentPage) select_proxy_window" to
   FvwmProxy.
 - FvwmProxy sets the context window and passes the string back
   to fvwm.
 - Fvwm runs the command and replies with "Select <new window id>"
 - FvwmProxy selects the given window.
  
Bye

Dominik ^_^  ^_^
--
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