mirror of
https://github.com/tmux/tmux.git
synced 2026-10-12 05:34:24 +00:00
Make pane scrollbars able to auto-hide after a short timeout. This
replaces the previous "modal" behaviour where the pane would be resized, which tended to make a mess. Instead, the scrollbar appears when scrolling or when hovered over with the mouse and disappears a (configurable) short period later. From Michael Grant.
This commit is contained in:
12
tmux.h
12
tmux.h
@@ -1266,6 +1266,9 @@ struct window_pane {
|
||||
|
||||
u_int sb_slider_y;
|
||||
u_int sb_slider_h;
|
||||
int sb_auto_visible;
|
||||
int sb_auto_hover;
|
||||
struct event sb_auto_timer;
|
||||
|
||||
int argc;
|
||||
char **argv;
|
||||
@@ -1440,6 +1443,7 @@ TAILQ_HEAD(winlink_stack, winlink);
|
||||
#define PANE_SCROLLBARS_OFF 0
|
||||
#define PANE_SCROLLBARS_MODAL 1
|
||||
#define PANE_SCROLLBARS_ALWAYS 2
|
||||
#define PANE_SCROLLBARS_AUTOHIDE 3
|
||||
|
||||
/* Pane scrollbars position option. */
|
||||
#define PANE_SCROLLBARS_RIGHT 0
|
||||
@@ -3581,6 +3585,14 @@ void window_set_fill_character(struct window *);
|
||||
void window_pane_default_cursor(struct window_pane *);
|
||||
int window_pane_mode(struct window_pane *);
|
||||
int window_pane_show_scrollbar(struct window_pane *, int);
|
||||
int window_pane_scrollbar_reserve(struct window_pane *, int);
|
||||
int window_pane_scrollbar_visible(struct window_pane *, int);
|
||||
int window_pane_scrollbar_overlay(struct window_pane *, int);
|
||||
int window_pane_scrollbar_overlay_visible(struct window_pane *);
|
||||
void window_pane_scrollbar_show(struct window_pane *, int);
|
||||
void window_pane_scrollbar_hide(struct window_pane *);
|
||||
void window_pane_scrollbar_start_timer(struct window_pane *);
|
||||
void window_pane_scrollbar_redraw(struct window_pane *);
|
||||
int window_pane_get_bg(struct window_pane *);
|
||||
int window_pane_get_fg(struct window_pane *);
|
||||
int window_pane_get_fg_control_client(struct window_pane *);
|
||||
|
||||
Reference in New Issue
Block a user