summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-06-30 11:50:56 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-07-09 09:09:16 +0900
commit6805e484a2c95ec2ec3cbd18fd859d278e0705e4 (patch)
treebad19eaf5c3bc9dcd528ebf81c47c998fa05a528
parent31cc570828da2bbf9a9d6b3c3382642a3106c033 (diff)
elm_cnp: Break after we found the target we were looking for
Basic optimization of the search.
-rw-r--r--src/lib/elm_cnp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_cnp.c b/src/lib/elm_cnp.c
index a9028f450..2ce7e3eab 100644
--- a/src/lib/elm_cnp.c
+++ b/src/lib/elm_cnp.c
@@ -632,6 +632,7 @@ _x11_selection_notify(void *udata EINA_UNUSED, int type EINA_UNUSED, void *event
632 _x11_atoms[i].notify(sel, ev); 632 _x11_atoms[i].notify(sel, ev);
633 } 633 }
634 else cnp_debug("Ignored: No handler!\n"); 634 else cnp_debug("Ignored: No handler!\n");
635 break;
635 } 636 }
636 } 637 }
637 return ECORE_CALLBACK_PASS_ON; 638 return ECORE_CALLBACK_PASS_ON;