unset x11 focus grabs on clients only if there is an xwindow present

fix T2539
This commit is contained in:
Mike Blumenkrantz 2015-07-02 14:57:42 -04:00
parent 1716f1a6fa
commit e9060ce771
1 changed files with 1 additions and 1 deletions

View File

@ -4246,12 +4246,12 @@ static void
_e_comp_x_hook_client_focus_set(void *d EINA_UNUSED, E_Client *ec)
{
focus_time = ecore_x_current_time_get();
_e_comp_x_focus_setdown(ec);
if (!e_client_has_xwindow(ec))
{
e_grabinput_focus(e_comp->ee_win, E_FOCUS_METHOD_PASSIVE);
return;
}
_e_comp_x_focus_setdown(ec);
if ((ec->icccm.take_focus) && (ec->icccm.accepts_focus))
{