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

View File

@ -291,7 +291,7 @@ window_create1(u_int sx, u_int sy)
w = xcalloc(1, sizeof *w);
w->name = NULL;
w->flags = 0;
w->flags = WINDOW_STYLECHANGED;
TAILQ_INIT(&w->panes);
w->active = NULL;