case XI_Leave:
{
XILeaveEvent *leave = (XILeaveEvent *) xi_event;
- struct xi_device_t *source;
#ifdef USE_GTK
+ struct xi_device_t *source;
XMotionEvent ev;
ev.x = lrint (leave->event_x);
#endif
any = x_top_window_to_frame (dpyinfo, leave->event);
+
+#ifdef USE_GTK
source = xi_device_from_id (dpyinfo, leave->sourceid);
+#endif
/* This allows us to catch LeaveNotify events generated by
popup menu grabs. FIXME: this is right when there is a