goto OTHER;
case LeaveNotify:
+ x_display_set_last_user_time (dpyinfo, event->xcrossing.time);
+
#ifdef HAVE_XWIDGETS
{
struct xwidget_view *xvw = xwidget_view_from_window (event->xcrossing.window);
}
}
#endif
- x_display_set_last_user_time (dpyinfo, event->xcrossing.time);
if (x_top_window_to_frame (dpyinfo, event->xcrossing.window))
x_detect_focus_change (dpyinfo, any, event, &inev.ie);
case ButtonRelease:
case ButtonPress:
{
+ if (event->xbutton.type == ButtonPress)
+ x_display_set_last_user_time (dpyinfo, event->xbutton.time);
+
#ifdef HAVE_XWIDGETS
struct xwidget_view *xvw = xwidget_view_from_window (event->xmotion.window);
memset (&compose_status, 0, sizeof (compose_status));
dpyinfo->last_mouse_glyph_frame = NULL;
- if (event->xbutton.type == ButtonPress)
- x_display_set_last_user_time (dpyinfo, event->xbutton.time);
-
f = mouse_or_wdesc_frame (dpyinfo, event->xmotion.window);
if (f && event->xbutton.type == ButtonPress
&& !popup_activated ()
enter->deviceid, false);
#endif
+ x_display_set_last_user_time (dpyinfo, xi_event->time);
+
#ifdef HAVE_XWIDGETS
{
struct xwidget_view *xvw
}
#endif
- x_display_set_last_user_time (dpyinfo, xi_event->time);
-
if (any)
x_detect_focus_change (dpyinfo, any, event, &inev.ie);
if (xv)
{
uint state = xev->mods.effective;
+ x_display_set_last_user_time (dpyinfo, xev->time);
if (xev->buttons.mask_len)
{
}
#endif
+ if (xev->evtype == XI_ButtonPress)
+ x_display_set_last_user_time (dpyinfo, xev->time);
+
#ifdef HAVE_XWIDGETS
xvw = xwidget_view_from_window (xev->event);
if (xvw)
dpyinfo->last_mouse_glyph_frame = NULL;
- if (xev->evtype == XI_ButtonPress)
- x_display_set_last_user_time (dpyinfo, xev->time);
-
f = mouse_or_wdesc_frame (dpyinfo, xev->event);
if (f && xev->evtype == XI_ButtonPress