Event.peek

If there is an event waiting in the event queue of some open display, returns a copy of it. See [gdk.display.Display.peekEvent].

Returns

a copy of the first #GdkEvent on some event

queue, or null if no events are in any queues. The returned #GdkEvent should be freed with [gdk.event.Event.free].