From 68b107ff5934c1995278d408350da69f15a13e4b Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 22 Oct 2019 10:12:51 -0400 Subject: [PATCH] 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 --- .../ecore_evas/engines/wayland/ecore_evas_wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c index d94925e61e..02884e50a6 100644 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -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);