Attaching to full-screen session from another monitor produces weird results
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.0.7
- OS version: 10.11.6
- Attach here (drag-drop from finder into this window) com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog I tried to attach the debug log but it said the attachment failed. Perhaps because 11MB is too big? So I tried again but this time just did the part where I detach from the full-screen on one display and then reattach. Only 4MB now. debuglog.txt
- Are you reporting a performance issue or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample No.
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
Detailed steps to reproduce the problem: 0. You need to have two displays connected.
- Create a session: "tmux new-session -s test-tmux"
- Detach from session: "C-b d"
- Attach to it via tmux: "tmux -CC attach -t test-tmux"
- Move the window to a secondary display.
- Full-screen the window "Command-Shift F"
- From the original terminal, detach from the session "ESC"
- Reattach to the session: "tmux -CC attach -t test-tmux"
What happened: The full-screen window opens on the primary display. Using the space-switching controls such as Ctrl-Left Arrow and Ctrl-Right Arrow, or four-fingered swipe, it is clear that this window is the left of two spaces, and the right space is a completely blank screen. The space controls do not lead back to the desktop or the terminal that launched the session. From that point you can use the Window menu to pull up the original terminal on top of the full-screen terminal, or use Command-Shift F to exit full screen. Somehow, the iTerm session is full screened not in a second space as per usual, but right on top of the first space! And it creates a completely blank second space on the same display!
What should have happened: Ideally the full-screen window would remember that it had been on the secondary display, and open there. But at least, if it opens on the primary display, it should open in a second space and not on top of the first one!
Some screen shots:
The re-expanded full-screen terminal in the wrong display:
Here it is after I brought the original terminal to the front:
Curiously, I can't get a screen shot of the completely black second space. It shows up in the screen capture as my normal desktop background.