aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 967d3756..48a8b0ab 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -350,6 +350,14 @@ struct sway_config {
350 list_t *command_policies; 350 list_t *command_policies;
351 list_t *feature_policies; 351 list_t *feature_policies;
352 list_t *ipc_policies; 352 list_t *ipc_policies;
353
354 // Context for command handlers
355 struct {
356 struct input_config *input_config;
357 struct seat_config *seat_config;
358 struct sway_seat *seat;
359 swayc_t *current_container;
360 } handler_context;
353}; 361};
354 362
355void pid_workspace_add(struct pid_workspace *pw); 363void pid_workspace_add(struct pid_workspace *pw);
@@ -375,6 +383,9 @@ bool read_config(FILE *file, struct sway_config *config);
375 * Free config struct 383 * Free config struct
376 */ 384 */
377void free_config(struct sway_config *config); 385void free_config(struct sway_config *config);
386
387void config_clear_handler_context(struct sway_config *config);
388
378void free_sway_variable(struct sway_variable *var); 389void free_sway_variable(struct sway_variable *var);
379/** 390/**
380 * Does variable replacement for a string based on the config's currently loaded variables. 391 * Does variable replacement for a string based on the config's currently loaded variables.