e: Fix off by one.

pos can be 10, and we access window in pos + 1 == 11

SVN revision: 77300
This commit is contained in:
Sebastian Dransfeld 2012-10-02 10:52:50 +00:00
parent b262da0198
commit 744ec42648
2 changed files with 4 additions and 4 deletions

View File

@ -128,7 +128,7 @@ e_container_new(E_Manager *man)
con->scratch_win = ecore_x_window_override_new(con->win, 0, 0, 7, 7);
/* init layers */
for (i = 0; i < 11; i++)
for (i = 0; i < 12; i++)
{
con->layers[i].win = ecore_x_window_input_new(con->win, 0, 0, 1, 1);
ecore_x_window_lower(con->layers[i].win);
@ -147,7 +147,7 @@ e_container_new(E_Manager *man)
ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
0, 0, 0, 0, 0,
con->layers[10].win, ECORE_X_WINDOW_STACK_ABOVE);
con->layers[11].win, ECORE_X_WINDOW_STACK_ABOVE);
/* Put menu win on top */
mwin = e_menu_grab_window_get();
@ -156,7 +156,7 @@ e_container_new(E_Manager *man)
ECORE_X_WINDOW_CONFIGURE_MASK_SIBLING |
ECORE_X_WINDOW_CONFIGURE_MASK_STACK_MODE,
0, 0, 0, 0, 0,
con->layers[10].win, ECORE_X_WINDOW_STACK_ABOVE);
con->layers[11].win, ECORE_X_WINDOW_STACK_ABOVE);
/* Put background win at the bottom */
ecore_x_window_configure(con->bg_win,

View File

@ -64,7 +64,7 @@ struct _E_Container
struct {
Ecore_X_Window win;
Eina_List *clients;
} layers[11];
} layers[12];
Ecore_X_Window scratch_win;
};