Cache the window styles and do not look up the window-style options

unless they have changed.
This commit is contained in:
nicm
2016-05-30 09:50:20 +00:00
parent 36ab4c7c49
commit 1921fac814
4 changed files with 32 additions and 14 deletions

4
tmux.h
View File

@ -943,10 +943,14 @@ struct window {
#define WINDOW_ZOOMED 0x1000
#define WINDOW_FORCEWIDTH 0x2000
#define WINDOW_FORCEHEIGHT 0x4000
#define WINDOW_STYLECHANGED 0x8000
#define WINDOW_ALERTFLAGS (WINDOW_BELL|WINDOW_ACTIVITY|WINDOW_SILENCE)
struct options *options;
struct grid_cell style;
struct grid_cell active_style;
u_int references;
RB_ENTRY(window) entry;