Subject: [2.0.43] PATCH: Do NOT sort WindowList

From: Makoto MATSUSHITA <[email-masked]>
Date: Fri, 30 Aug 1996 03:08:28 +0900

Here is a patch for plain 2.0.43. It enables 'NOT sorted' WindowList.
This patch DOES NOT CHANGE current behavior of WindowList which is
written in manual page (it is just a little enhancement of WindowList).

To use the effect of this patch, simply say:
	WindowList 6
or if you want to show iconname instead of windowname, say:
	WindowList 7

I hope it'll be included in the next release. Sorry that this patch
does not include the addtional manual entry of this feature.

- -
Makoto `MAR_kun' MATSUSHITA

--- fvwm/windows.c.dist	Thu Jun 27 22:39:25 1996
+++ fvwm/windows.c	Fri Aug 30 02:52:05 1996
@@ -75,17 +75,21 @@
 	  else
 	    next_desk = MY_INT_MAX;
 	}
-      else 
+      else if((val1 < 6)&&(val1 > -6))
 	{
 	  if(last_desk_done  == MY_INT_MIN)
 	    next_desk = val2;
 	  else
 	    next_desk = MY_INT_MAX;
 	}
+      else
+	{
+	  next_desk = MY_INT_MAX;
+	}
       last_desk_done = next_desk;
       for (t = Scr.FvwmRoot.next; t != NULL; t = t->next)
 	{
-	  if((t->Desk == next_desk)&&
+	  if(((next_desk == MY_INT_MAX) || (t->Desk == next_desk))&&
 	    (!(t->flags & WINDOWLISTSKIP)))
 	    {
 	      if (++scut == ('9' + 1)) scut = 'A';	/* Next shortcut key */
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].