Add a define for whether mouse is enabled by default (still off).

This commit is contained in:
nicm
2026-07-05 10:49:05 +00:00
parent 468c2942a3
commit 2fdcb64a79
2 changed files with 4 additions and 1 deletions

View File

@@ -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'."

3
tmux.h
View File

@@ -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