-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opening new tabs in Terminal changes its position in the layout #633
Comments
This appears to actually be a pretty big issue with tabbed windows (at least in Terminal). The tabs switch between windows, but they are windows with different window ids. They appear to be fully fledged windows. Their parents are the application. Not sure how to get past this one. |
At the very least this isn't a regression (it happens in 0.11.3). |
From what I've seen, tabbed windows are also reported through the accessibility notifications. An ugly workaround is to rebalance (reflow in amethyst?) the window representation after a window created / destroyed event. Interested to hear if you come up with a better solution. |
This happens to all windows that use native Cocoa tabs that were introduced in macOS 10.12 Sierra. If you use the "Show All Tabs" option it somehow resets. Safari is not affected, its tabs are not the Cocoa defaults for whatever reason. |
Did some testing on this (on macOS 10.13.2):
|
OSX Opening a new tab, or switching tabs within terminal causes the "empty space" issue. Minimizing and restoring the window seem to repair the issue. |
Did a bunch of testing over the weekend. Some general notes.
|
Turns out my issue with new tabs was actually just needing to tolerate more height difference. Windows that go from not having tabs to having tabs can change the titlebar size which contributes to the overall differential. |
Can you talk more about the need for height tolerance in general (like when it's used, and why)? This might be related to some other behavior I've noticed. |
@ianfixes The problem is that when you open a new tab it gets mostly treated as a new window, but the dimensions of the window can be different. This isn't true for all windows—e.g., Safari seems to not change height—but it's definitely true for Terminal windows. |
If I'm reading this correctly, you are trying to determine whether |
It is technically a guess, yes. For most windows there's no need for the tolerance as the tabs will be in the same frame, but some applications (e.g., Terminal) have some quirks. |
System
What's the problem?
When in tall layout I had a terminal window with 2 tabs in a layout with 3 windows. It was in the first position in the secondary pane, but when adding a new tab it moved to the second position in the secondary pane.
How can it be reproduced?
What applications are involved?
Has anything fixed it, even temporarily?
dotfile (if you have one)
Screenshots
Trello Card
The text was updated successfully, but these errors were encountered: