Added pointer frame events

(cherry picked from commit 784db04f1d)
This commit is contained in:
akallabeth 2021-03-02 08:49:50 +01:00 committed by akallabeth
parent ca28de4be3
commit 55f02d3f9a

View File

@ -846,7 +846,19 @@ static void pointer_handle_axis(void* data, struct wl_pointer* pointer, uint32_t
static void pointer_frame(void* data, struct wl_pointer* wl_pointer)
{
/*UwacSeat *seat = data;*/
UwacPointerFrameEvent* event;
UwacSeat* seat = data;
UwacWindow* window = seat->pointer_focus;
if (!window)
return;
event = (UwacPointerFrameEvent*)UwacDisplayNewEvent(seat->display, UWAC_EVENT_POINTER_FRAME);
if (!event)
return;
event->seat = seat;
event->window = window;
}
static void pointer_axis_source(void* data, struct wl_pointer* wl_pointer, uint32_t axis_source)