summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@enlightenment.org>2013-11-20 15:12:25 -0500
committerMike Blumenkrantz <zmike@enlightenment.org>2013-11-20 15:32:30 -0500
commitcc2939b327f9ae1ff8b13d3f6bc10ed1b973003f (patch)
tree0522e3b7d03c735c2611d354baabd28cbf7ed361
parentd17ab08019eb1abe27c39d5201585656564ffe4b (diff)
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
-rw-r--r--src/bin/e_border.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 43cc26157..19b49ffff 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -728,7 +728,10 @@ e_border_new(E_Container *con, Ecore_X_Window win, int first_map, int internal)
728 desk[1] = desky; 728 desk[1] = desky;
729 ecore_x_window_prop_card32_set(win, E_ATOM_DESK, desk, 2); 729 ecore_x_window_prop_card32_set(win, E_ATOM_DESK, desk, 2);
730 730
731 focus_stack = eina_list_append(focus_stack, bd); 731 if (starting)
732 focus_stack = eina_list_prepend(focus_stack, bd);
733 else
734 focus_stack = eina_list_append(focus_stack, bd);
732 735
733 return bd; 736 return bd;
734} 737}