Fix background terminal startup for unfocused workspaces (#920)
This commit is contained in:
parent
26bef7316e
commit
8193e55dae
2 changed files with 197 additions and 0 deletions
|
|
@ -2688,6 +2688,9 @@ class TerminalController {
|
|||
#endif
|
||||
v2MainSync {
|
||||
let ws = tabManager.addWorkspace(workingDirectory: cwd, select: shouldFocus)
|
||||
if !shouldFocus, let terminalPanel = ws.focusedTerminalPanel {
|
||||
terminalPanel.surface.requestBackgroundSurfaceStartIfNeeded()
|
||||
}
|
||||
newId = ws.id
|
||||
}
|
||||
#if DEBUG
|
||||
|
|
@ -10297,6 +10300,9 @@ class TerminalController {
|
|||
#endif
|
||||
DispatchQueue.main.sync {
|
||||
let workspace = tabManager.addTab(select: focus)
|
||||
if !focus, let terminalPanel = workspace.focusedTerminalPanel {
|
||||
terminalPanel.surface.requestBackgroundSurfaceStartIfNeeded()
|
||||
}
|
||||
newTabId = workspace.id
|
||||
}
|
||||
#if DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue