Struct runa_wayland_protocols::unstable::xdg_shell_unstable_v5::xdg_surface::v1::events::Configure
source · pub struct Configure<'a> {
pub width: i32,
pub height: i32,
pub states: &'a [u8],
pub serial: u32,
}
Expand description
suggest a surface change
The configure event asks the client to resize its surface or to change its state.
The width and height arguments specify a hint to the window about how its surface should be resized in window geometry coordinates. See set_window_geometry.
If the width or height arguments are zero, it means the client should decide its own window dimension. This may happen when the compositor need to configure the state of the surface but doesn’t have any information about any previous or expected dimension.
The states listed in the event specify how the width/height arguments should be interpreted, and possibly how it should be drawn.
Clients should arrange their surface for the new size and states, and then send a ack_configure request with the serial sent in this configure event at some point before committing the new surface.
If the client receives multiple configure events before it can respond to one, it is free to discard all but the last event it received.
Fields§
§width: i32
§height: i32
§states: &'a [u8]
§serial: u32