'Tmux grid border in second session window

I attached to an existing tmux session from a second iterm2 window on a second screen.

tmux new-session -t matt

For some reason my session has a dotted border around the window. Why is this happening?

tmux grid border



Solution 1:[1]

This border appears when the second window's zoom does not match the first windows zoom. Press cmd +/- to make the window's zoom match and it will go away.

Solution 2:[2]

This is very similar to this question: Is there any way to redraw tmux window when switching smaller monitor to bigger one?

One way to prevent this (the dots around the "useful" portion) is to detach all other sessions when you attach:

$ tmux attach -d -t matt

Solution 3:[3]

You do not need to detach the other sessions. Enter your tmux prefix (e.g. Ctrl+b) and then enter the following command

:resize-window -A

I found it here: https://unix.stackexchange.com/questions/218815/tmux-force-resize-window/570015#570015

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matt Carrier
Solution 2 rcreswick
Solution 3 Berkay Berabi