do not apply x11 focus grabs to internal clients if efl version > 1.14

due to recent changes in ecore-input-evas, mouse events are propagated
differently; specifically, there are now "more" events than there previously were.
as a result, grabs on internal wins are no longer necessary, though they probably
never were necessary after the elm conversion

see 5cb6cdbc5e1a13ea0262e155983b494e6519abde in efl
This commit is contained in:
Mike Blumenkrantz 2015-07-01 17:12:16 -04:00
parent 632bdd84a7
commit 62da0f32bf
1 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,9 @@ _e_comp_x_print_win(Ecore_X_Window win)
static void static void
_e_comp_x_focus_grab(E_Client *ec) _e_comp_x_focus_grab(E_Client *ec)
{ {
#if EFL_VERSION_MAJOR > 1 || EFL_VERSION_MINOR > 14
if (ec->internal_ecore_evas) return;
#endif
ecore_x_window_button_grab(e_client_util_win_get(ec), 1, ecore_x_window_button_grab(e_client_util_win_get(ec), 1,
ECORE_X_EVENT_MASK_MOUSE_DOWN | ECORE_X_EVENT_MASK_MOUSE_DOWN |
ECORE_X_EVENT_MASK_MOUSE_UP | ECORE_X_EVENT_MASK_MOUSE_UP |