On 2/14/06, Mikhael Goikhman <[EMAIL PROTECTED]> wrote: > On 14 Feb 2006 13:45:10 +0000, seventh guardian wrote: > > > > I found this on the todo-list: > > > > E.7 Fix the FvwmProxy placement algorithm (it may loop and can place windows > > off screen) > > [dv: added on 02-Mar-2003] > > > > I've looked int othe code, but I really don't know what the bug is. > > Can please anyone point me to where to look, and how to trigger it? > > Then I cound put my hands on it.. > > The mail archives are now fully searchable (more or less all years). > You may go to http://www.mail-archive.com/fvwm-workers@lists.math.uh.edu/ > and type "FvwmProxy placement" or any other search phrase. >
Thanks for the tip (oops, I should have searched first..) :) Anyway, I found the problem and here's a correction. The code is a bit ugly now, so I will probably clean it up as soon as I get some time. Anyway, It works perfectly so far (and passed the "xterm -geom 10x5-0-0 & xterm -geom 10x5-0-0 & xterm -geom 10x5-0-0 &" test). Here goes the patch. I've added a function to test if the proxy window is on screen (don't know if there is one already..). Cheers Renato Caldas
proxy.patch
Description: Binary data