Clear stale surface bg override on config changes
This commit is contained in:
parent
66a9435da6
commit
1c3f8458ee
1 changed files with 12 additions and 0 deletions
|
|
@ -1245,6 +1245,18 @@ class GhosttyApp {
|
|||
}
|
||||
return true
|
||||
case GHOSTTY_ACTION_CONFIG_CHANGE:
|
||||
if let staleOverride = surfaceView.backgroundColor {
|
||||
surfaceView.backgroundColor = nil
|
||||
if backgroundLogEnabled {
|
||||
logBackground(
|
||||
"surface override cleared tab=\(surfaceView.tabId?.uuidString ?? "nil") surface=\(surfaceView.terminalSurface?.id.uuidString ?? "nil") cleared=\(staleOverride.hexString()) source=action.config_change.surface"
|
||||
)
|
||||
}
|
||||
surfaceView.applySurfaceBackground()
|
||||
DispatchQueue.main.async {
|
||||
surfaceView.applyWindowBackgroundIfActive()
|
||||
}
|
||||
}
|
||||
updateDefaultBackground(
|
||||
from: action.action.config_change.config,
|
||||
source: "action.config_change.surface tab=\(surfaceView.tabId?.uuidString ?? "nil") surface=\(surfaceView.terminalSurface?.id.uuidString ?? "nil")",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue