win: handle restack to bottom correctly

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-04-03 21:15:38 +01:00
parent 166ec55778
commit b9f894c4fc
3 changed files with 33 additions and 7 deletions

View File

@ -394,6 +394,9 @@ typedef struct session {
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;
/// 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