elm_cnp: Break after we found the target we were looking for
authorJean-Philippe Andre <jp.andre@samsung.com>
Mon, 30 Jun 2014 02:50:56 +0000 (11:50 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 9 Jul 2014 00:09:16 +0000 (09:09 +0900)
Basic optimization of the search.

src/lib/elm_cnp.c

index a9028f4..2ce7e3e 100644 (file)
@@ -632,6 +632,7 @@ _x11_selection_notify(void *udata EINA_UNUSED, int type EINA_UNUSED, void *event
                   _x11_atoms[i].notify(sel, ev);
                }
              else cnp_debug("Ignored: No handler!\n");
+             break;
           }
      }
    return ECORE_CALLBACK_PASS_ON;