From 418a920119e4ceaa1b4a7f239458f32c2e6b8706 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 --- src/modules/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 ee81b05..08b8229 100755 --- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c +++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c @@ -1726,7 +1726,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); -- 2.7.4