Subject: FVWM: patch to SmartPlacement

From: Aaron <[email-masked]>
Date: Wed, 31 Jan 1996 15:17:12 -0500 (EST)

i like for my windows to be placed from top to bottom on the left side of
the screen then to the right as it gets full.  default for fvwm places 
across the top left to right, then down.

anyway, i made the following trivial change to fvwm/placement.c

34c34
<   while(((test_x + temp_w) < (Scr.MyDisplayWidth))&&(!loc_ok))
---
>   while(((test_y + temp_h) < (Scr.MyDisplayHeight))&&(!loc_ok))
36,37c36,37
<       test_y = 0;
<       while(((test_y + temp_h) < (Scr.MyDisplayHeight))&&(!loc_ok))
---
>       test_x = 0;
>       while(((test_x + temp_w) < (Scr.MyDisplayWidth))&&(!loc_ok))
55c55
<                         test_y = ty + th;
---
>                         test_x = tx + tw;
61,62d60
<       test_y +=1;
<       }
63a62,63
>       }
>       test_y +=1;

i am not suggesting that this be the default.  i think it would be nice 
to have this type of option in the config file.

--
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].