mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-17 07:16:12 +00:00
Binding for toggling window float on top (macOS only)
This adds a keybinding and apprt action for #7237.
This commit is contained in:
@@ -42,6 +42,28 @@ extension Ghostty {
|
||||
// MARK: Swift Types for C Types
|
||||
|
||||
extension Ghostty {
|
||||
enum SetFloatWIndow {
|
||||
case on
|
||||
case off
|
||||
case toggle
|
||||
|
||||
static func from(_ c: ghostty_action_float_window_e) -> Self? {
|
||||
switch (c) {
|
||||
case GHOSTTY_FLOAT_WINDOW_ON:
|
||||
return .on
|
||||
|
||||
case GHOSTTY_FLOAT_WINDOW_OFF:
|
||||
return .off
|
||||
|
||||
case GHOSTTY_FLOAT_WINDOW_TOGGLE:
|
||||
return .toggle
|
||||
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
enum SetSecureInput {
|
||||
case on
|
||||
case off
|
||||
|
Reference in New Issue
Block a user