[BACK]Return to resize.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/resize.c between version 1.37 and 1.38

version 1.37, 2020/01/28 08:06:11 version 1.38, 2020/01/28 13:23:24
Line 66 
Line 66 
 static int  static int
 ignore_client_size(struct client *c)  ignore_client_size(struct client *c)
 {  {
           struct client   *loop;
   
         if (c->session == NULL)          if (c->session == NULL)
                 return (1);                  return (1);
         if (c->flags & CLIENT_NOSIZEFLAGS)          if (c->flags & CLIENT_NOSIZEFLAGS)
                 return (1);                  return (1);
           if (c->flags & CLIENT_READONLY) {
                   /*
                    * Ignore readonly clients if there are any attached clients
                    * that aren't readonly.
                    */
                   TAILQ_FOREACH (loop, &clients, entry) {
                           if (loop->session == NULL)
                                   continue;
                           if (loop->flags & CLIENT_NOSIZEFLAGS)
                                   continue;
                           if (~loop->flags & CLIENT_READONLY)
                                   return (1);
                   }
           }
         if ((c->flags & CLIENT_CONTROL) && (~c->flags & CLIENT_SIZECHANGED))          if ((c->flags & CLIENT_CONTROL) && (~c->flags & CLIENT_SIZECHANGED))
                 return (1);                  return (1);
         return (0);          return (0);

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38