summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2024-11-20 15:08:47 -0800
committerMitchell Hashimoto <m@mitchellh.com>2024-11-21 10:30:27 -0800
commitfadfb08efef52b23ceac598839c98fdf51d2cf1c (patch)
tree271303bc610f1d346da79d1900319907a581b673 /include
parent3404816875d956c43376bd087a0db69cb6f3db4f (diff)
apprt: add `config_change` action
Diffstat (limited to 'include')
-rw-r--r--include/ghostty.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ghostty.h b/include/ghostty.h
index d0426e995..5186ad783 100644
--- a/include/ghostty.h
+++ b/include/ghostty.h
@@ -532,6 +532,11 @@ typedef struct {
uint8_t b;
} ghostty_action_color_change_s;
+// apprt.action.ConfigChange
+typedef struct {
+ ghostty_config_t config;
+} ghostty_action_config_change_s;
+
// apprt.Action.Key
typedef enum {
GHOSTTY_ACTION_NEW_WINDOW,
@@ -568,6 +573,7 @@ typedef enum {
GHOSTTY_ACTION_KEY_SEQUENCE,
GHOSTTY_ACTION_COLOR_CHANGE,
GHOSTTY_ACTION_CONFIG_CHANGE_CONDITIONAL_STATE,
+ GHOSTTY_ACTION_CONFIG_CHANGE,
} ghostty_action_tag_e;
typedef union {
@@ -592,6 +598,7 @@ typedef union {
ghostty_action_secure_input_e secure_input;
ghostty_action_key_sequence_s key_sequence;
ghostty_action_color_change_s color_change;
+ ghostty_action_config_change_s config_change;
} ghostty_action_u;
typedef struct {