Refactor linked-list operations into a header

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-04 09:11:27 +01:00
parent b9f894c4fc
commit 5077d56676
7 changed files with 155 additions and 87 deletions

View File

@ -393,10 +393,7 @@ typedef struct session {
/// A hash table of all windows.
win *windows;
/// Windows in their stacking order
win *window_stack;
/// Pointer to the `next` field of the bottom most window,
/// or a pointer to `window_stack` when there is no window
win **window_stack_bottom;
struct list_node window_stack;
/// Pointer to <code>win</code> of current active window. Used by
/// EWMH <code>_NET_ACTIVE_WINDOW</code> focus detection. In theory,
/// it's more reliable to store the window ID directly here, just in