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
This commit is contained in:
Carsten Haitzler 2020-12-12 12:06:59 +00:00
parent f8ec17801a
commit 503c69e0f7
1 changed files with 4 additions and 1 deletions

View File

@ -2276,7 +2276,8 @@ win_new(const char *name, const char *role, const char *title,
_cb_win_mouse_move, _cb_win_mouse_move,
wn); wn);
evas_object_show(o); 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()) if (ecore_imf_init())
{ {
@ -7345,6 +7346,7 @@ _cb_options_done(void *data)
Term *orig_term = data; Term *orig_term = data;
Win *wn = orig_term->wn; Win *wn = orig_term->wn;
elm_object_focus_highlight_style_set(wn->base, "blank");
_on_popover_done(wn); _on_popover_done(wn);
term_unref(orig_term); term_unref(orig_term);
@ -7364,6 +7366,7 @@ _cb_options(void *data,
tc->unfocus(tc, NULL); 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, controls_show(term->wn->win, term->wn->base, term->bg_edj, term->termio,
_cb_options_done, term); _cb_options_done, term);
} }