CVSROOT: /cvs Module name: src Changes by: n...@cvs.openbsd.org 2017/05/31 04:15:51
Modified files: usr.bin/tmux : server-client.c tmux.h window.c Log message: Because we defer actually resizing applications (calling TIOCSWINSZ) until the end of the server loop, tmux may have gone through several internal resizes in between. This can be a problem if the final size is the same as the initial size (what the application things it currently is), because the application may choose not to redraw, assuming the screen state is unchanged, when in fact tmux has thrown away parts of the screen, assuming the application will redraw them. To avoid this, do an extra resize if the new size is the same size as the initial size. This should force the application to redraw when tmux needs it to, while retaining the benefits of deferring (so we now resize at most two times instead of at most one - and only two very rarely). Fixes a problem with break-pane and zoomed panes reported by Michal Mazurek.