Update of /cvsroot/tmux/tmux
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11917

Modified Files:
        resize.c tmux.h tty.c 
Log Message:
PatchSet 789
Date: 2010/11/22 21:13:13
Author: nicm
Branch: HEAD
Tag: (none)
Log:
There is somewhere that WINDOW_HIDDEN is getting set when it shouldn't
be and I can't find it, but the flag itself is a useless optimisation
that only applies to automatic-resize windows, so just dispose of it
entirely.

Fixes problems reported by Nicholas Riley.

Members:
        resize.c:1.5->1.6
        tmux.h:1.246->1.247
        tty.c:1.92->1.93



Index: tty.c
===================================================================
RCS file: /cvsroot/tmux/tmux/tty.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- tty.c       24 Oct 2010 00:45:57 -0000      1.196
+++ tty.c       6 Dec 2010 21:57:56 -0000       1.197
@@ -547,7 +547,7 @@
 
        if (wp->window->flags & WINDOW_REDRAW || wp->flags & PANE_REDRAW)
                return;
-       if (wp->window->flags & WINDOW_HIDDEN || !window_pane_visible(wp))
+       if (!window_pane_visible(wp))
                return;
 
        for (i = 0; i < ARRAY_LENGTH(&clients); i++) {

Index: tmux.h
===================================================================
RCS file: /cvsroot/tmux/tmux/tmux.h,v
retrieving revision 1.583
retrieving revision 1.584
diff -u -d -r1.583 -r1.584
--- tmux.h      6 Dec 2010 21:50:24 -0000       1.583
+++ tmux.h      6 Dec 2010 21:57:56 -0000       1.584
@@ -841,9 +841,8 @@
 
        int              flags;
 #define WINDOW_BELL 0x1
-#define WINDOW_HIDDEN 0x2
-#define WINDOW_ACTIVITY 0x4
-#define WINDOW_REDRAW 0x8
+#define WINDOW_ACTIVITY 0x2
+#define WINDOW_REDRAW 0x4
 
        struct options   options;
 

Index: resize.c
===================================================================
RCS file: /cvsroot/tmux/tmux/resize.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- resize.c    22 Jun 2010 23:26:18 -0000      1.25
+++ resize.c    6 Dec 2010 21:57:56 -0000       1.26
@@ -113,11 +113,8 @@
                                        ssy = s->sy;
                        }
                }
-               if (ssx == UINT_MAX || ssy == UINT_MAX) {
-                       w->flags |= WINDOW_HIDDEN;
+               if (ssx == UINT_MAX || ssy == UINT_MAX)
                        continue;
-               }
-               w->flags &= ~WINDOW_HIDDEN;
 
                limit = options_get_number(&w->options, "force-width");
                if (limit != 0 && ssx > limit)


------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to