ecore_evas_wayland: Fix array step size

Fix bug where eina_array step size was being increased by 10 everytime
a handler was pushed to the array. There is no need to increase array
size by 10 each time we add 1 pointer to handler.

@fix
This commit is contained in:
Christopher Michael 2019-10-22 10:12:51 -04:00
parent f7fdb9c7f6
commit 68b107ff59
1 changed files with 1 additions and 1 deletions

View File

@ -1325,7 +1325,7 @@ _ecore_evas_wl_common_init(void)
if (++_ecore_evas_wl_init_count != 1)
return _ecore_evas_wl_init_count;
_ecore_evas_wl_event_hdls = eina_array_new(10);
_ecore_evas_wl_event_hdls = eina_array_new(1);
h = ecore_event_handler_add(ECORE_EVENT_MOUSE_IN,
_ecore_evas_wl_common_cb_mouse_in, NULL);