raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=503c69e0f7cc3e2554b14a830b3693531e05b62f

commit 503c69e0f7cc3e2554b14a830b3693531e05b62f
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sat Dec 12 12:06:59 2020 +0000

    fix rogue focus overlay that auto-mode adds where terminology does it
    
    terminology handles showing rfocus display inside the elm layout so
    even if the layout is focusable, it shouldnt SHOW it, but we want to
    show it when the controls popup is open so toggle it then
---
 src/bin/win.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/bin/win.c b/src/bin/win.c
index 41a6cd7..7a747ce 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -2276,7 +2276,8 @@ win_new(const char *name, const char *role, const char 
*title,
                                   _cb_win_mouse_move,
                                   wn);
    evas_object_show(o);
-   elm_object_focus_set(wn->base, EINA_TRUE);
+   elm_object_focus_highlight_style_set(o, "blank");
+   elm_object_focus_set(o, EINA_TRUE);
 
    if (ecore_imf_init())
      {
@@ -7345,6 +7346,7 @@ _cb_options_done(void *data)
    Term *orig_term = data;
    Win *wn = orig_term->wn;
 
+   elm_object_focus_highlight_style_set(wn->base, "blank");
    _on_popover_done(wn);
 
    term_unref(orig_term);
@@ -7364,6 +7366,7 @@ _cb_options(void *data,
 
    tc->unfocus(tc, NULL);
 
+   elm_object_focus_highlight_style_set(term->wn->base, "default");
    controls_show(term->wn->win, term->wn->base, term->bg_edj, term->termio,
                  _cb_options_done, term);
 }

-- 


Reply via email to