From 503c69e0f7cc3e2554b14a830b3693531e05b62f Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sat, 12 Dec 2020 12:06:59 +0000 Subject: [PATCH] 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 41a6cd7e..7a747ced 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); }