-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

In wmii-3.1 you can send a client (1) between any non-floating
areas, and (2) from a non-floating area to the floating area. But
you cannot send a client from the floating area to any other area.

So, here is a patch which enables you to send a client from any area
to any other area (via "sendto AREA_NUMBER"). This patch also
includes the sendto segfault fix, which I posted recently.

Cheers.

By the way, it is faster to send a client to a particular column via
"sendto AREA_NUMBER" than iteratively via "sendto next|prev".
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFBxPHmV9O7RYnKMcRAjctAJ9KkdeZts6FRkFwnyAETmPzNmcCnwCeMgvP
8BTACbyJTJQkhIOe4Vb58n8=
=o749
-----END PGP SIGNATURE-----
diff -bcr wmii-3.1.orig/cmd/wm/client.c wmii-3.1.new/cmd/wm/client.c
*** wmii-3.1.orig/cmd/wm/client.c	2006-06-17 04:44:30.000000000 -0700
--- wmii-3.1.new/cmd/wm/client.c	2006-09-12 12:55:14.000000000 -0700
***************
*** 726,739 ****
  		else
  			to = v->area.data[1];
  	}
! 	else if(i) {
  		i = cext_strtonum(arg, 0, v->area.size - 1, &errstr);
  		if(errstr)
  			return;
  		to = v->area.data[i];
! 	}
! 	else
  		return;
  	send_to_area(to, a, c);
  	flush_masked_events(EnterWindowMask);
  }
--- 726,739 ----
      else
        to = v->area.data[1];
    }
!   else {
      i = cext_strtonum(arg, 0, v->area.size - 1, &errstr);
      if(errstr)
        return;
      to = v->area.data[i];
!     if(to == a) /* prevent segfault */
        return;
+   }
    send_to_area(to, a, c);
    flush_masked_events(EnterWindowMask);
  }
_______________________________________________
wmii@wmii.de mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to