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

Diff for /src/usr.bin/tmux/window.c between version 1.288 and 1.289

version 1.288, 2024/02/13 08:03:50 version 1.289, 2024/03/21 11:30:42
Line 340 
Line 340 
 {  {
         log_debug("window @%u destroyed (%d references)", w->id, w->references);          log_debug("window @%u destroyed (%d references)", w->id, w->references);
   
         window_unzoom(w);          window_unzoom(w, 0);
         RB_REMOVE(windows, &windows, w);          RB_REMOVE(windows, &windows, w);
   
         if (w->layout_root != NULL)          if (w->layout_root != NULL)
Line 666 
Line 666 
 }  }
   
 int  int
 window_unzoom(struct window *w)  window_unzoom(struct window *w, int notify)
 {  {
         struct window_pane      *wp;          struct window_pane      *wp;
   
Line 683 
Line 683 
                 wp->saved_layout_cell = NULL;                  wp->saved_layout_cell = NULL;
         }          }
         layout_fix_panes(w, NULL);          layout_fix_panes(w, NULL);
         notify_window("window-layout-changed", w);  
   
           if (notify)
                   notify_window("window-layout-changed", w);
   
         return (0);          return (0);
 }  }
   
Line 697 
Line 699 
                 w->flags |= WINDOW_WASZOOMED;                  w->flags |= WINDOW_WASZOOMED;
         else          else
                 w->flags &= ~WINDOW_WASZOOMED;                  w->flags &= ~WINDOW_WASZOOMED;
         return (window_unzoom(w) == 0);          return (window_unzoom(w, 1) == 0);
 }  }
   
 int  int

Legend:
Removed from v.1.288  
changed lines
  Added in v.1.289