diff --git a/options-table.c b/options-table.c index c7a8158be..afcfea18a 100644 --- a/options-table.c +++ b/options-table.c @@ -955,7 +955,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 e1a6bae2f..3fffee413 100644 --- a/tmux.h +++ b/tmux.h @@ -99,6 +99,9 @@ struct winlink; #ifndef TMUX_LOCK_CMD #define TMUX_LOCK_CMD "lock -np" #endif +#ifndef TMUX_MOUSE +#define TMUX_MOUSE 0 +#endif /* Minimum and maximum layout cell size, NOT including border lines. */ #define PANE_MINIMUM 1