prepend new windows to focus stack during init

this fixes stacking after restarts since we manage and raise windows from the bottom up, meaning that we must also build our focus stack from back to front
This commit is contained in:
Mike Blumenkrantz 2013-11-20 15:12:25 -05:00
parent d17ab08019
commit cc2939b327
1 changed files with 4 additions and 1 deletions

View File

@ -728,7 +728,10 @@ e_border_new(E_Container *con, Ecore_X_Window win, int first_map, int internal)
desk[1] = desky;
ecore_x_window_prop_card32_set(win, E_ATOM_DESK, desk, 2);
focus_stack = eina_list_append(focus_stack, bd);
if (starting)
focus_stack = eina_list_prepend(focus_stack, bd);
else
focus_stack = eina_list_append(focus_stack, bd);
return bd;
}