On Tue, Mar 30, 2004 at 04:12:15PM +0200, Rafa? Bisingier wrote: > Dominik Vogt wrote: > >On Sat, Mar 13, 2004 at 08:33:53PM +0100, Rafa?? Bisingier wrote: > > > >>Hi, > >> > >>I'm a quite new fvwm user, but already love it's fexibility. > >> > >>I needed a little upgrade in Maximize growing functions, so I've made a > >>patch ;-) > >>It adds another option to the Maximize command called overlayer which > >>take one parameter - number of layer over which windows can grow. > >>So any window maximized using "Maximize overlayer 2 grow grow" grows > >>over any windows on layers 0,1 and 2 > >>I hope this description is clear enough. If not the patch contains also > >>man page update, so try there ;-) > > > > > >I have applied the patch, but I slightly changed the syntax. You > >can now say > > > > Maximize growonwindowlayer grow grow > > > >to ignore all windows except the ones on the same layer as the > >window to be maximized and > > > > Maximize growonlayers <min> <max> grow grow > > > >to specify a range of layers. > > Thanks a lot. > > I found in the manpage an example which now is not correct: > Mouse 0 4 A Maximize layer grow grow > > I wanted to change it to the new syntax, but I found out that I don't > know how to get the same behavior... ;-)
Ah, I forgot to add the $[w.layer] variable which is needed in this case. The new syntax is Mouse 0 4 A Maximize growonlayers $[w.layer] -1 grow grow But since you want to hit only higher layers, you need some arithmetic with piperead: Mouse 0 4 a Piperead \\ "echo maximize growonlayers $$(($[w.layer]+1)) -1 grow grow" Ciao 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]