bool tab_bar_p = false;
bool tool_bar_p = false;
struct xi_device_t *device;
+#ifdef HAVE_XWIDGETS
+ struct xwidget_view *xvw;
+#endif
#ifdef XIPointerEmulated
/* Ignore emulated scroll events when XI2 native
}
#endif
+#ifdef HAVE_XWIDGETS
+ xvw = xwidget_view_from_window (xev->event);
+ if (xvw)
+ {
+ xwidget_button (xvw, xev->evtype == XI_ButtonPress,
+ lrint (xev->event_x), lrint (xev->event_y),
+ xev->detail, xev->mods.effective, xev->time);
+
+ if (!EQ (selected_window, xvw->w) && (xev->detail < 4))
+ {
+ inev.ie.kind = SELECT_WINDOW_EVENT;
+ inev.ie.frame_or_window = xvw->w;
+ }
+
+ *finish = X_EVENT_DROP;
+ goto XI_OTHER;
+ }
+#endif
+
device = xi_device_from_id (dpyinfo, xev->deviceid);
if (!device || !device->master_p)
mask.deviceid = XIAllMasterDevices;
XISetMask (m, XI_Motion);
+ XISetMask (m, XI_ButtonPress);
+ XISetMask (m, XI_ButtonRelease);
XISelectEvents (xv->dpy, xv->wdesc, &mask, 1);
}
#endif