allow x11 mouse wheel events to check ev->event_window for possible client match

in the event that these windows are different, event_window is the parent of window
which may or may not be explicitly tracked by an E_Client, so the wheel events here
should be sent to the parent as is done in mouse button events

fix T2604
This commit is contained in:
Mike Blumenkrantz 2015-07-27 13:23:13 -04:00
parent 0d19a5914b
commit 0a8ee7b5ad
1 changed files with 2 additions and 0 deletions

View File

@ -2218,6 +2218,8 @@ _e_comp_x_mouse_wheel(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Mouse_
//else
{
ec = _e_comp_x_client_find_by_window(ev->window);
if ((!ec) && (ev->window != ev->event_window))
ec = _e_comp_x_client_find_by_window(ev->event_window);
if (!ec) return ECORE_CALLBACK_RENEW;
}
if (_e_comp_x_client_data_get(ec)->deleted) return ECORE_CALLBACK_RENEW;