tmux-plugins/tmux-resurrect — pull request #54 by Azrael3000 (2014-10-24 23:15:29+00:00)
Title: Preserving layout of zoomed windows across restores

The problem is that tmux list-window shows only the current pane layout
if a pane is maximized. This is a bug in tmux. In order to avoid this
bug we unzoom the window when saving and zoom in again after saving.
This implies that the Z flag is no longer set in list-windows, and so it
can't be used when restoring. Instead we use the Z flag of the panes
(which still have it) to restore the zoom.