Hi,

I copy'n'pasted (why reinvent the wheel) following function into my config:

#resize current window
DestroyFunc ResizeInWindow
AddToFunc ResizeInWindow
+ I WarpToWindow 50 50
+ I Current PipeRead "myw=$[w.width]; myh=$[w.height]; stepw=$0; steph=$1; \
   echo Resize frame $$[ $$myw + $$stepw ]p $$[ $$myh + $$steph ]p"


This unction works fine except for one direction. If the second
argumet is negative, it does take it as 0 (thus I'm unable to enlarge
window verically).

ResizeInWindow 10 -10 - width + 10 and height remains same!!!
ResizeInWindow 10 10 - width+10 and height+10 (ok)
ResizeInWindow -10 -10 - width-10 and height reamins same !!!

I cannot figure out what's wrong, (maybe it's a bug, but imho I do
something wrong - I don't believe that no one would notice such a bug)

can you please help me figure what's wrong?

I'm using fvwm 2.5.12 (gentoo on i386 - athlon xp)

Thanks

Lukas Lipavsky

Reply via email to