From 2fdcb64a79fddb5aaaf1c8cb50b2dc985af023f1 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 5 Jul 2026 10:49:05 +0000 Subject: [PATCH] Add a define for whether mouse is enabled by default (still off). --- options-table.c | 2 +- tmux.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/options-table.c b/options-table.c index a5aff6a1f..b1ab705d5 100644 --- a/options-table.c +++ b/options-table.c @@ -956,7 +956,7 @@ const struct options_table_entry options_table[] = { { .name = "mouse", .type = OPTIONS_TABLE_FLAG, .scope = OPTIONS_TABLE_SESSION, - .default_num = 0, + .default_num = TMUX_MOUSE, .text = "Whether the mouse is recognised and mouse key bindings are " "executed. " "Applications inside panes can use the mouse even when 'off'." diff --git a/tmux.h b/tmux.h index dd2a69c15..3e5a4eae5 100644 --- a/tmux.h +++ b/tmux.h @@ -90,6 +90,9 @@ struct winlink; #ifndef TMUX_TERM #define TMUX_TERM "screen" #endif +#ifndef TMUX_MOUSE +#define TMUX_MOUSE 0 +#endif /* Minimum and maximum layout cell size, NOT including border lines. */ #define PANE_MINIMUM 1