delete x11 mouse-in job when hiding the job's client

spurious x11 mouse events will be received when activating a mouse binding which
flips the active desk

fix T3716
This commit is contained in:
Mike Blumenkrantz 2016-05-31 12:21:09 -04:00
parent ce6da215fd
commit a4011ee2d6
1 changed files with 6 additions and 0 deletions

View File

@ -989,6 +989,12 @@ _e_comp_x_evas_hide_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
E_Client *ec = data, *tmp;
Eina_List *l;
if (ec == mouse_client)
{
mouse_client = NULL;
E_FREE_FUNC(mouse_in_job, ecore_job_del);
}
if (!_e_comp_x_client_data_get(ec)) return; // already deleted, happens with internal wins
_e_comp_x_client_hide(ec);