forked from enlightenment/enlightenment
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:
parent
d17ab08019
commit
cc2939b327
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue