Struct runa_wayland_protocols::stable::xdg_shell::xdg_surface::v5::requests::AckConfigure
source · pub struct AckConfigure {
pub serial: u32,
}
Expand description
ack a configure event
When a configure event is received, if a client commits the surface in response to the configure event, then the client must make an ack_configure request sometime before the commit request, passing along the serial of the configure event.
For instance, for toplevel surfaces the compositor might use this information to move a surface to the top left only when the client has drawn itself for the maximized or fullscreen state.
If the client receives multiple configure events before it can respond to one, it only has to ack the last configure event. Acking a configure event that was never sent raises an invalid_serial error.
A client is not required to commit immediately after sending an ack_configure request - it may even ack_configure several times before its next surface commit.
A client may send multiple ack_configure requests before committing, but only the last request sent before a commit indicates which configure event the client really is responding to.
Sending an ack_configure request consumes the serial number sent with the request, as well as serial numbers sent by all configure events sent on this xdg_surface prior to the configure event referenced by the committed serial.
It is an error to issue multiple ack_configure requests referencing a serial from the same configure event, or to issue an ack_configure request referencing a serial from a configure event issued before the event identified by the last ack_configure request for the same xdg_surface. Doing so will raise an invalid_serial error.
Fields§
§serial: u32
Implementations§
Trait Implementations§
source§impl Clone for AckConfigure
impl Clone for AckConfigure
source§fn clone(&self) -> AckConfigure
fn clone(&self) -> AckConfigure
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AckConfigure
impl Debug for AckConfigure
source§impl<'a> Deserialize<'a> for AckConfigure
impl<'a> Deserialize<'a> for AckConfigure
source§impl PartialEq<AckConfigure> for AckConfigure
impl PartialEq<AckConfigure> for AckConfigure
source§fn eq(&self, other: &AckConfigure) -> bool
fn eq(&self, other: &AckConfigure) -> bool
self
and other
values to be equal, and is used
by ==
.