Skip to main content

next_serial

Function next_serial 

Source
pub fn next_serial() -> Serial
Expand description

Hand out the next unique, monotonically increasing Wayland event serial.

Wayland tags each event with a serial so clients and Smithay can prove a request was caused by a specific event (popup grab, selection change). Every injected input event draws a fresh value from this process-wide atomic counter.

ยงReturns

A new [Serial] value.