pub enum Request {
Destroy,
SetRegion {
region: ObjectId,
},
}
Variants§
Destroy
destroy the confined pointer object
Destroy the confined pointer object. If applicable, the compositor will unconfine the pointer.
SetRegion
set a new confine region
Set a new region used to confine the pointer.
The new confine region is double-buffered. The new confine region will only take effect when the associated surface gets its pending state applied. See wl_surface.commit for details.
If the confinement is active when the new confinement region is applied and the pointer ends up outside of newly applied region, the pointer may warped to a position within the new confinement region. If warped, a wl_pointer.motion event will be emitted, but no wp_relative_pointer.relative_motion event.
The compositor may also, instead of using the new region, unconfine the pointer.
For details about the confine region, see wp_confined_pointer.
Fields
region: ObjectId
region of surface