discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=5fb09a0249f714ab185b1f84a024d3f468963dd6
commit 5fb09a0249f714ab185b1f84a024d3f468963dd6 Author: Mike Blumenkrantz <m.blumenk...@samsung.com> Date: Mon Oct 7 03:52:09 2013 +0100 add minor optimization for e_manager_current_get for most common case there's only more than one manager when we're running true multi-head, which is pretty rare/non-existent with compositing, so we can avoid an X call here by just returning the only possible manager --- src/bin/e_manager.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/e_manager.c b/src/bin/e_manager.c index 7dca2be..3d167cd 100644 --- a/src/bin/e_manager.c +++ b/src/bin/e_manager.c @@ -455,6 +455,8 @@ e_manager_current_get(void) int x, y; if (!managers) return NULL; + if (eina_list_count(managers) == 1) + return eina_list_data_get(managers); EINA_LIST_FOREACH(managers, l, man) { ecore_x_pointer_xy_get(man->win, &x, &y); --