seoz pushed a commit to branch master.

commit ae08c6e721899d44c0202abe772d600078e908b9
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Mar 10 00:40:33 2013 +0900

    evas evas_focus.c: simplified the source.
---
 src/lib/evas/canvas/evas_focus.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/evas/canvas/evas_focus.c b/src/lib/evas/canvas/evas_focus.c
index 0e1914d..38c6af0 100644
--- a/src/lib/evas/canvas/evas_focus.c
+++ b/src/lib/evas/canvas/evas_focus.c
@@ -27,9 +27,9 @@ _focus_set(Eo *eo_obj, void *_pd, va_list *list)
    _evas_object_event_new();
 
    event_id = _evas_event_counter;
+   if (obj->focused == focus) goto end;
    if (focus)
      {
-        if (obj->focused) goto end;
         if (obj->layer->evas->focused)
           evas_object_focus_set(obj->layer->evas->focused, 0);
         obj->focused = 1;
@@ -40,7 +40,6 @@ _focus_set(Eo *eo_obj, void *_pd, va_list *list)
      }
    else
      {
-        if (!obj->focused) goto end;
         obj->focused = 0;
         obj->layer->evas->focused = NULL;
         evas_object_event_callback_call(eo_obj, obj, EVAS_CALLBACK_FOCUS_OUT, 
NULL, event_id);

-- 

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev

Reply via email to