summaryrefslogtreecommitdiffstats
path: root/window.c
diff options
context:
space:
mode:
authornicm <nicm>2019-03-18 14:10:25 +0000
committernicm <nicm>2019-03-18 14:10:25 +0000
commit2628af573d98f7bdd4db02c7a80c860b867a45fb (patch)
treec24323e11d4cb609bc22a03327b40606ed45ac05 /window.c
parentce6be7afd4d10b542f9cce8634d6bdd81754f775 (diff)
Add format variables for the default formats for the various modes
(tree_mode_format and so on) and add a -a flag to display-message to list variables with values.
Diffstat (limited to 'window.c')
-rw-r--r--window.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/window.c b/window.c
index a253e8bf..a5c68ece 100644
--- a/window.c
+++ b/window.c
@@ -62,6 +62,17 @@ static u_int next_window_pane_id;
static u_int next_window_id;
static u_int next_active_point;
+/* List of window modes. */
+const struct window_mode *all_window_modes[] = {
+ &window_buffer_mode,
+ &window_client_mode,
+ &window_clock_mode,
+ &window_copy_mode,
+ &window_tree_mode,
+ &window_view_mode,
+ NULL
+};
+
static void window_destroy(struct window *);
static struct window_pane *window_pane_create(struct window *, u_int, u_int,