mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-28 19:46:35 +00:00
apprt/embedded: new_window can be called without a parent
This commit is contained in:
@@ -279,7 +279,8 @@ pub const Action = union(enum) {
|
||||
/// available values.
|
||||
write_selection_file: WriteScreenAction,
|
||||
|
||||
/// Open a new window.
|
||||
/// Open a new window. If the application isn't currently focused,
|
||||
/// this will bring it to the front.
|
||||
new_window: void,
|
||||
|
||||
/// Open a new tab.
|
||||
@@ -562,6 +563,10 @@ pub const Action = union(enum) {
|
||||
.quit,
|
||||
=> .app,
|
||||
|
||||
// These are app but can be special-cased in a surface context.
|
||||
.new_window,
|
||||
=> .app,
|
||||
|
||||
// Obviously surface actions.
|
||||
.csi,
|
||||
.esc,
|
||||
@@ -593,12 +598,12 @@ pub const Action = union(enum) {
|
||||
.toggle_window_decorations,
|
||||
.toggle_secure_input,
|
||||
.crash,
|
||||
=> .surface,
|
||||
|
||||
// These are less obvious surface actions. They're surface
|
||||
// actions because they are relevant to the surface they
|
||||
// come from. For example `new_window` needs to be sourced to
|
||||
// a surface so inheritance can be done correctly.
|
||||
.new_window,
|
||||
.new_tab,
|
||||
.previous_tab,
|
||||
.next_tab,
|
||||
|
||||
Reference in New Issue
Block a user