don't run x11 focus (un)set callbacks for override clients

this is unnecessary in x11 and broken in xwayland
This commit is contained in:
Mike Blumenkrantz 2017-06-30 10:25:23 -04:00
parent 836845a615
commit fea11b1621
1 changed files with 2 additions and 0 deletions

View File

@ -4624,6 +4624,7 @@ _e_comp_x_hook_client_focus_unset(void *d EINA_UNUSED, E_Client *ec)
focus_job_client = NULL;
E_FREE_FUNC(focus_job, ecore_job_del);
}
if (ec->override) return;
unfocus_job_client = ec;
if (!unfocus_job)
unfocus_job = ecore_job_add(_e_comp_x_hook_client_focus_unset_job, NULL);
@ -4668,6 +4669,7 @@ _e_comp_x_hook_client_focus_set(void *d EINA_UNUSED, E_Client *ec)
unfocus_job_client = NULL;
E_FREE_FUNC(unfocus_job, ecore_job_del);
}
if (ec->override) return;
focus_job_client = ec;
if (!focus_job)
focus_job = ecore_job_add(_e_comp_x_hook_client_focus_set_job, NULL);