The other thing we could do completely detach all the other panes from
the layout, w->last and w->panes, all_window_panes and put them on a
list w->saved_panes. Then there is no way to reach them and we can
merrily create a new one-pane layout then just link the old panes back
when we're done. Might give this a spin instead :-).


On Fri, Feb 22, 2013 at 07:58:16AM +0000, Thomas Adam wrote:
> Hi,
> 
> On 22 February 2013 07:52, Nicholas Marriott
> <nicholas.marri...@gmail.com> wrote:
> > Hmm. Not sure I like scrambling all the other panes sizes but I don't
> > see offhand why it freezes. I take it you didn't do restore?
> 
> I think I restored it by reapplying a different layout.  The freeze
> most likely was due to closing a pane in a maximised state because the
> other pane(s) would then be marked as not visible and hence couldn't
> select anything thereafter... or something like that.
> 
> > Thinking more a mode wouldn't do it because of course they are inside
> > the pane :-).
> >
> > I think rather than removing the old layout we should just save it off
> > and make a new temporary one, then restoring it is simple. The problem
> > is of course all the panes are still reachable via the window so might
> > need checks all over the place... maybe just a check in
> > window_pane_visible might get some of them. And a bunch of calls in
> > various places to restore the layout before doing things like kill
> > pane/select layout/etc etc etc.
> 
> Hmm.  That might work.  I did originally think of just adding this
> ability to resize-pane instead since it's not strictly a layout; of
> course, this would be disruptive to other panes, so... maybe not.
> 
> -- Thomas Adam

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to