mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: hook up the action for the slide terminal
This commit is contained in:
@ -482,6 +482,9 @@ extension Ghostty {
|
|||||||
case GHOSTTY_ACTION_RENDERER_HEALTH:
|
case GHOSTTY_ACTION_RENDERER_HEALTH:
|
||||||
rendererHealth(app, target: target, v: action.action.renderer_health)
|
rendererHealth(app, target: target, v: action.action.renderer_health)
|
||||||
|
|
||||||
|
case GHOSTTY_ACTION_TOGGLE_SLIDE_TERMINAL:
|
||||||
|
toggleSlideTerminal(app, target: target)
|
||||||
|
|
||||||
case GHOSTTY_ACTION_CLOSE_ALL_WINDOWS:
|
case GHOSTTY_ACTION_CLOSE_ALL_WINDOWS:
|
||||||
fallthrough
|
fallthrough
|
||||||
case GHOSTTY_ACTION_TOGGLE_TAB_OVERVIEW:
|
case GHOSTTY_ACTION_TOGGLE_TAB_OVERVIEW:
|
||||||
@ -830,6 +833,14 @@ extension Ghostty {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static func toggleSlideTerminal(
|
||||||
|
_ app: ghostty_app_t,
|
||||||
|
target: ghostty_target_s
|
||||||
|
) {
|
||||||
|
guard let appDelegate = NSApplication.shared.delegate as? AppDelegate else { return }
|
||||||
|
appDelegate.toggleSlideTerminal(self)
|
||||||
|
}
|
||||||
|
|
||||||
private static func setTitle(
|
private static func setTitle(
|
||||||
_ app: ghostty_app_t,
|
_ app: ghostty_app_t,
|
||||||
target: ghostty_target_s,
|
target: ghostty_target_s,
|
||||||
|
Reference in New Issue
Block a user