e focus - fix to previous commit to restore keybinds on last win del

i didn't notice, but if you delete all windows on a desktop then no
keybinding work. i needed t use my commented out workaround actually
and then a bit. @fix
This commit is contained in:
Carsten Haitzler 2019-01-30 23:10:25 +00:00
parent 9b94849f92
commit 91770e35f8
1 changed files with 3 additions and 3 deletions

View File

@ -144,18 +144,18 @@ _e_comp_x_focus_check(void)
// e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
// This might be more specific a workaround bit might miss other cases, so keep
// here as an idea and for future reference
/*
else
{
Ecore_X_Window *focus_win = ecore_x_window_focus_get();
Ecore_X_Window focus_win = ecore_x_window_focus_get();
if (focus_win)
{
if ((ecore_x_window_root_get(focus_win) == focus_win) ||
(!ecore_x_icccm_transient_for_get(focus_win)))
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
}
else
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
}
*/
}
}