void DSWaylandPointerPrivate::sendEnter(struct ::wl_resource *wlResource, struct ::wl_resource *surface, int surface_x, int surface_y)
{
+ if (!__wlPointerResource)
+ return;
+
wl_fixed_t surface_x_fixed = wl_fixed_from_int(surface_x);
wl_fixed_t surface_y_fixed = wl_fixed_from_int(surface_y);
void DSWaylandPointerPrivate::sendLeave(struct ::wl_resource *wlResource, struct ::wl_resource *surface)
{
+ if (!__wlPointerResource)
+ return;
+
send_leave(__wlPointerResource, __compositor->nextSerial(), surface);
}
void DSWaylandPointerPrivate::sendMotion(int surface_x, int surface_y)
{
+ if (!__wlPointerResource)
+ return;
+
wl_fixed_t surface_x_fixed = wl_fixed_from_int(surface_x);
wl_fixed_t surface_y_fixed = wl_fixed_from_int(surface_y);
void DSWaylandPointerPrivate::sendButton(uint32_t button, uint32_t state)
{
+ if (!__wlPointerResource)
+ return;
+
send_button(__wlPointerResource, __compositor->nextSerial(), __seat->getCurrentEventTime(), button, state);
}