FVWM: patch to SmartPlacement

From: Aaron <aaron_at_mccabe.com>
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 majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Jan 31 1996 - 14:20:20 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST