if (new != focus && new)
{
-
#ifdef HAVE_X_I18N
if (FRAME_XIC (new))
XSetICFocus (FRAME_XIC (new));
}
break;
-#ifdef HAVE_XINPUT2
- case GenericEvent:
- xi_focus_handle_for_device (dpyinfo, frame,
- event->xcookie.data);
- break;
-#endif
-
case FocusIn:
case FocusOut:
/* Ignore transient focus events from hotkeys, window manager
are an inferiors of the frame's top window, which will
get virtual events. */
if (any)
- x_detect_focus_change (dpyinfo, any, event, &inev.ie);
+ xi_focus_handle_for_device (dpyinfo, any, xi_event);
if (!any)
any = x_any_window_to_frame (dpyinfo, enter->event);
#endif
if (any)
- x_detect_focus_change (dpyinfo, any, event, &inev.ie);
+ xi_focus_handle_for_device (dpyinfo, any, xi_event);
#ifndef USE_X_TOOLKIT
f = x_top_window_to_frame (dpyinfo, leave->event);