diff options
author | Ethan Warth <redyoshi49q@gmail.com> | 2018-10-11 00:27:24 -0500 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2018-11-18 16:24:43 +0100 |
commit | ce86ff580adda751fc94ab6b001842385ee00973 (patch) | |
tree | f015229478db9f208438dfe5409ca4fe02c0b7db /src/window.h | |
parent | cee011a388e7c94a2b7a786d87d1cd200fcf5fa7 (diff) | |
download | screen-ce86ff580adda751fc94ab6b001842385ee00973.tar.gz |
add persistent bits to window group display options
Windowlist has two toggles that affect its output: the list can be sorted in
either index or MRU order, and the list can contain either just immediate
children windows of all descendant windows. Since window groups use the same
code for their own output, they also support these toggles.
However, in the current code base, these toggles are reset to index ordering and
display of immediate children only every time a particular window group is
swapped out of and back into a pane.
Amadeusz:
added commit message + changed variable names + some reformatting
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h index e6faaee..bcdf830 100644 --- a/src/window.h +++ b/src/window.h @@ -50,6 +50,8 @@ struct NewWindow { bool aflag; bool dynamicaka; int flowflag; + bool list_order; /* list order for window groups */ + bool list_nested; /* show nested children in window groups */ int lflag; int histheight; int monitor; @@ -139,6 +141,8 @@ struct Window { Window *w_next; /* next window */ Window *w_prev_mru; /* previous most recently used window */ int w_type; /* type of window */ + bool w_list_order; /* MRU list order for window groups */ + bool w_list_nested; /* show nested children in window groups */ Layer w_layer; /* our layer */ Layer *w_savelayer; /* the layer to keep */ int w_blocked; /* block input */ |