billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=9ecda225b89c3c181a94a60a4a3f1b4288a264ad

commit 9ecda225b89c3c181a94a60a4a3f1b4288a264ad
Author: Boris Faure <bill...@gmail.com>
Date:   Mon Jun 1 21:19:14 2015 +0200

     fix focus wrt settings. Closes T2460
---
 src/bin/win.c | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/bin/win.c b/src/bin/win.c
index ec0b01e..2bfea24 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -816,12 +816,14 @@ _win_unfocus(Term_Container *tc, Term_Container *relative)
 
    wn = (Win*) tc;
 
-   tc->is_focused = EINA_FALSE;
    if (relative != wn->child)
-     wn->child->unfocus(wn->child, tc);
+     {
+        tc->is_focused = EINA_FALSE;
+        wn->child->unfocus(wn->child, tc);
 
-   if ((wn->cmdbox_up) && (wn->cmdbox))
-     elm_object_focus_set(wn->cmdbox, EINA_FALSE);
+        if ((wn->cmdbox_up) && (wn->cmdbox))
+          elm_object_focus_set(wn->cmdbox, EINA_FALSE);
+     }
 }
 
 static void
@@ -3781,6 +3783,7 @@ static void
 _cb_options_done(void *data)
 {
    Win *wn = data;
+   Term_Container *tc = (Term_Container*) wn;
    Eina_List *l;
    Term *term;
 
@@ -3791,8 +3794,10 @@ _cb_options_done(void *data)
           {
              elm_object_focus_set(term->termio, EINA_TRUE);
              termio_event_feed_mouse_in(term->termio);
+             return;
           }
      }
+   tc->focus(tc, tc);
 }
 
 static void

-- 


Reply via email to