-- 
Rui Monteiro
####################################################################
--- FvwmCascade.c.orig  Mon Nov 17 13:20:13 1997
+++ FvwmCascade.c       Mon Nov 17 13:25:37 1997
_at_@ -58,6 +58,7 @@
 int resize = 0, nostretch = 0, sticky = 0;
 int flatx = 0, flaty = 0;
 int incx = 0, incy = 0;
+int mlins = 0, mcols = 0;
 
 void insert_window_list(window_list *wl, window_item *i)
 {
_at_@ -200,12 +201,23 @@
 {
     char msg[128];
     int cur_x = ofsx, cur_y = ofsy;
+       int maxx = (maxw ? maxw : dwidth);
+       int maxy = (maxh ? maxh : dheight);
     window_item *w = reversed ? wins_tail : wins;
     while (w)
     {
        unsigned long nw = 0, nh = 0;
        if (raise_window)
-           SendInfo(fd,"Raise",w->frame);
+               SendInfo(fd,"Raise",w->frame);
+       if( mcols && 
+               ((cur_y+w->height)>maxy) )
+         {
+               cur_y = ofsy;
+         }
+       if( mlins && ((cur_x+w->width)>maxx) )
+         {
+               cur_x = ofsx;
+         }
        sprintf(msg, "Move %up %up", cur_x, cur_y);
        SendInfo(fd,msg,w->frame);
        if (resize) {
_at_@ -246,6 +258,12 @@
     {
        if (!strcmp(argv[argi],"-u")) {
            untitled = 1;
+       }
+       else if (!strcmp(argv[argi],"-mlins")) {
+           mlins = 1;
+       }
+       else if (!strcmp(argv[argi],"-mcols")) {
+           mcols = 1;
        }
        else if (!strcmp(argv[argi],"-t")) {
            transients = 1;
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
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 Mon Nov 17 1997 - 08:14:50 GMT
This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST