Re: screen window hiding patch

"Eric Wald" <[email protected]> Sat, 4 Mar 2006 12:56:44 -0700
Newsgroups gmane.comp.gnu.screen
Message-ID <[email protected]>
Ben Kibbey wrote:
> This patch adds window hiding from the 'next', 'prev' and 'other'
> commands.

I really like the hiding from 'next' and 'prev', but not from 'other'.
I was also surprised that the "hidden" windows showed up in my %w status
lines, but saw that you had thought about that.  My solution: hide them
*unless* either it's the current window, or window flags are shown.

@@ -4803,8 +4877,13 @@
 	ss = s;
       if ((p = *pp) == 0)
 	continue;
-      if ((flags & 1) && display && p == D_fore)
-	continue;
+      if (display && p == D_fore)
+	{
+	  if (flags & 1)
+	    continue;
+	}
+      else if ((flags & 2) && p->w_hide)
+	continue;

       cmd = p->w_title;
       l = strlen(cmd);

- Eric