Skip to content
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

Second tab in Ghostty creates void space between windows #943

Closed
HotscriptGG opened this issue Jan 10, 2025 · 1 comment
Closed

Second tab in Ghostty creates void space between windows #943

HotscriptGG opened this issue Jan 10, 2025 · 1 comment
Labels
bug Something isn't working as expected duplicate The issue is a duplicate

Comments

@HotscriptGG
Copy link

HotscriptGG commented Jan 10, 2025

Describe the bug
It happens with another open window, eg. Chrome (but it happens with other windows) or in the empty space.

Steps to reproduce it.

  1. Open Ghostty,
  2. Create second tab,
  3. Windows are spaced with empty space and resizing them is impossible.
  4. If you close additional Ghostty tab windows get back into proper place and all is back to normal
Zrzut ekranu 2025-01-10 o 08 26 49

In cases I've tested:

  • empty space
  • Chrome on the left, Ghostty on the right
  • Ghostty on the left, Chrome on the right

opening a new Ghostty tab causes the the layout shift, moving the Ghostty window to the right.

Below is the debug output for the case that's in screenshot:

com.mitchellh.ghostty.window.47786 windowId: 47786
com.mitchellh.ghostty.window.47786 workspace: 6
com.mitchellh.ghostty.window.47786 treeNodeParent: AppBundle.TilingContainer
com.mitchellh.ghostty.window.47786 recognizedAsDialog: false
com.mitchellh.ghostty.window.47786 AXTitle: Optional(aerospace debug-windows)
com.mitchellh.ghostty.window.47786 AXRole: Optional(AXWindow)
com.mitchellh.ghostty.window.47786 AXSubrole: Optional(AXStandardWindow)
com.mitchellh.ghostty.window.47786 AXIdentifier: Optional(TerminalWindowRestoration)
com.mitchellh.ghostty.window.47786 AXFocused: Optional(0)
com.mitchellh.ghostty.window.47786 AXFullScreen: Optional(0)
com.mitchellh.ghostty.window.47786 AXFrame: Optional(<AXValue 0x600001d4a8c0> {value = x:1707.000000 y:29.000000 w:849.000000 h:1406.000000 type = kAXValueCGRectType})
com.mitchellh.ghostty.window.47786 AXPosition: Optional(<AXValue 0x6000006f36f0> {value = x:1707.000000 y:29.000000 type = kAXValueCGPointType})
com.mitchellh.ghostty.window.47786 AXGrowArea: nil
com.mitchellh.ghostty.window.47786 AXMinimizeButton: AXUIElement {
com.mitchellh.ghostty.window.47786      AXRole: Optional(AXButton)
com.mitchellh.ghostty.window.47786      AXTitle: nil
com.mitchellh.ghostty.window.47786      AXSubrole: Optional(AXMinimizeButton)
com.mitchellh.ghostty.window.47786      AXEnabled: Optional(1)
com.mitchellh.ghostty.window.47786      AXParent: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXTopLevelUIElement: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      Ignored: AXFrame, AXSize, AXFocused, AXHelp, AXPosition, AXRoleDescription
com.mitchellh.ghostty.window.47786 }
com.mitchellh.ghostty.window.47786 AXDocument: Optional(file:///Users/andrzej.stachlewski/)
com.mitchellh.ghostty.window.47786 AXSections: [
com.mitchellh.ghostty.window.47786         Optional({
com.mitchellh.ghostty.window.47786             SectionDescription = Content;
com.mitchellh.ghostty.window.47786             SectionObject = "<AXUIElement 0x6000006f1b60> {pid=49237}";
com.mitchellh.ghostty.window.47786             SectionUniqueID = AXContent;
com.mitchellh.ghostty.window.47786         }),
com.mitchellh.ghostty.window.47786         Optional({
com.mitchellh.ghostty.window.47786             SectionObject = "<AXUIElement 0x6000006f0a20> {pid=49237}";
com.mitchellh.ghostty.window.47786             SectionUniqueID = AXContainer;
com.mitchellh.ghostty.window.47786         })
com.mitchellh.ghostty.window.47786 ]
com.mitchellh.ghostty.window.47786 AXCloseButton: AXUIElement {
com.mitchellh.ghostty.window.47786      AXRole: Optional(AXButton)
com.mitchellh.ghostty.window.47786      AXTitle: nil
com.mitchellh.ghostty.window.47786      AXSubrole: Optional(AXCloseButton)
com.mitchellh.ghostty.window.47786      AXEnabled: Optional(1)
com.mitchellh.ghostty.window.47786      AXParent: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXTopLevelUIElement: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      Ignored: AXFrame, AXSize, AXFocused, AXHelp, AXPosition, AXRoleDescription, AXEdited
com.mitchellh.ghostty.window.47786 }
com.mitchellh.ghostty.window.47786 AXMain: Optional(1)
com.mitchellh.ghostty.window.47786 AXActivationPoint: Optional(<AXValue 0x6000006f36f0> {value = x:1777.000000 y:43.000000 type = kAXValueCGPointType})
com.mitchellh.ghostty.window.47786 AXFullScreenButton: AXUIElement {
com.mitchellh.ghostty.window.47786      AXRole: Optional(AXButton)
com.mitchellh.ghostty.window.47786      AXTitle: nil
com.mitchellh.ghostty.window.47786      AXSubrole: Optional(AXFullScreenButton)
com.mitchellh.ghostty.window.47786      AXEnabled: Optional(1)
com.mitchellh.ghostty.window.47786      AXParent: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXTopLevelUIElement: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      Ignored: AXFrame, AXSize, AXFocused, AXChildren, AXHelp, AXPosition, AXRoleDescription
com.mitchellh.ghostty.window.47786 }
com.mitchellh.ghostty.window.47786 AXProxy: AXUIElement(windowId=47786, title="andrzej.stachlewski", role="AXImage", subrole=nil)
com.mitchellh.ghostty.window.47786 AXDefaultButton: nil
com.mitchellh.ghostty.window.47786 AXMinimized: Optional(0)
com.mitchellh.ghostty.window.47786 AXParent: Optional(<AXUIElement Application 0x6000006f36f0> {pid=49237})
com.mitchellh.ghostty.window.47786 AXTitleUIElement: AXUIElement(windowId=47786, title=nil, role="AXStaticText", subrole=nil)
com.mitchellh.ghostty.window.47786 AXCancelButton: nil
com.mitchellh.ghostty.window.47786 AXModal: Optional(0)
com.mitchellh.ghostty.window.47786 AXZoomButton: AXUIElement {
com.mitchellh.ghostty.window.47786      AXRole: Optional(AXButton)
com.mitchellh.ghostty.window.47786      AXTitle: nil
com.mitchellh.ghostty.window.47786      AXSubrole: Optional(AXFullScreenButton)
com.mitchellh.ghostty.window.47786      AXEnabled: Optional(1)
com.mitchellh.ghostty.window.47786      AXParent: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXTopLevelUIElement: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      AXWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty.window.47786      Ignored: AXFrame, AXSize, AXFocused, AXChildren, AXHelp, AXPosition, AXRoleDescription
com.mitchellh.ghostty.window.47786 }
com.mitchellh.ghostty.window.47786 AXSize: Optional(<AXValue 0x6000006f36f0> {value = w:849.000000 h:1406.000000 type = kAXValueCGSizeType})
com.mitchellh.ghostty.window.47786 AXToolbarButton: nil
com.mitchellh.ghostty.window.47786 Ignored: AXChildrenInNavigationOrder, AXChildren, AXRoleDescription
com.mitchellh.ghostty              AXRole: Optional(AXApplication)
com.mitchellh.ghostty              AXTitle: Optional(Ghostty)
com.mitchellh.ghostty              AXFunctionRowTopLevelElements: [
com.mitchellh.ghostty              ]
com.mitchellh.ghostty              AXFrame: nil
com.mitchellh.ghostty              AXFocusedUIElement: AXUIElement(windowId=47786, title=nil, role="AXUnknown", subrole=nil)
com.mitchellh.ghostty              AXFrontmost: Optional(1)
com.mitchellh.ghostty              AXExtrasMenuBar: nil
com.mitchellh.ghostty              AXMainWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty              AXFocusedWindow: AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty              AXMenuBar: Optional(<AXUIElement 0x6000006f1620> {pid=49237})
com.mitchellh.ghostty              AXWindows: [
com.mitchellh.ghostty                  AXUIElement(windowId=47786, title="aerospace debug-windows", role="AXWindow", subrole="AXStandardWindow")
com.mitchellh.ghostty              ]
com.mitchellh.ghostty              AXSize: nil
com.mitchellh.ghostty              AXPosition: nil
com.mitchellh.ghostty              Ignored: AXChildren, AXChildrenInNavigationOrder, AXEnhancedUserInterface, AXPreferredLanguage, AXRoleDescription, AXHidden

!!! DISCLAIMER !!!
!!! 'debug-windows' command is not stable API. Please don't rely on the command existence and output format !!!
!!! The only intended use case is to report bugs about incorrect windows handling !!!

Debug session finished

Related issues you could find
The same happens with default Terminal.app as described here.
(#517)

@HotscriptGG HotscriptGG added the bug Something isn't working as expected label Jan 10, 2025
@nikitabobko
Copy link
Owner

Duplicate of #68

@nikitabobko nikitabobko marked this as a duplicate of #68 Jan 10, 2025
@nikitabobko nikitabobko added the duplicate The issue is a duplicate label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected duplicate The issue is a duplicate
Projects
None yet
Development

No branches or pull requests

2 participants