]> Pileus Git - lackey/commit
Rework how the current window is stored
authorAndy Spencer <andy753421@gmail.com>
Sun, 16 Jun 2013 06:00:07 +0000 (06:00 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 16 Jun 2013 06:00:33 +0000 (06:00 +0000)
commit3265a69256eb1c88ad9776fd5e2a569186778180
treef9e4a7902ce7141bd2d98090149d63d3731fcaf0
parentff73132b49900fddd76e82c75372b60f49d44889
Rework how the current window is stored

The current window is now a pointer to the actual window instead of an
index into the menu. The menu is also stored separate from full list of
windows and each window is created as a separate structure so that it
can be referenced by name.

The down side is that we can't use an 'enum' for config parsing, but on
the other hand, we're not duplicating the list of names at least.
src/view.c
src/view.h