xx_cutouts_unstable_v1 ↗
Copyright
Copyright © 2026 Phosh.mobi e.V. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Warning! The protocol described in this file is currently in the experimental phase. Backwards incompatible major versions of the protocol are to be expected. Exposing this protocol without an opt-in mechanism is discouraged.
- xx_cutouts_manager_v1 — Display cutouts area manager
- xx_cutouts_v1 — cutout regions information
Protocol to describe cut out surface regions
This protocol describes the areas of a toplevel that are cut out of the available surface area by hardware elements present in the physical display. This allows clients to avoid placing user interface elements in those areas.
Typical cutout areas are notches (i.e. embedding a camera) or "waterfall" display edges. In the case of a notch the compositor would usually supply the bounding box of the notch or an approximation by multiple rectangles. Thus a single physical element in the display can correspond to multiple cutout events in the protocol.
The protocol currently supports xdg_toplevel surfaces but is meant to be extended to other surfaces (like layer surfaces) in the future.
Warning! The protocol described in this file is experimental and backward incompatible changes may be made. Backward compatible changes may be added together with the corresponding interface version bump. Backward incompatible changes can only be done by creating a new major version of the extension.
xx_cutouts_unstable_v1
xx_cutouts_manager_v1
- error
- destroy — destroy the xx_cutouts_manager object
- get_cutouts — create a cutout notifier from a xdg toplevel
Display cutouts area manager
This interface allows a compositor to announce support for supplying cutout information to the client.
xx_cutouts_unstable_v1
xx_cutouts_v1
- type — Cutout type
- corner_position — Corner position
- error
- destroy — destroy the xx_cutouts object
- cutout_box — A rectangular cutout region
- cutout_corner — A cutout corner
- configure — notify cutout changes
- set_unhandled — Notify about unhandled cutouts
cutout regions information
An xx_cutouts describes the areas currently "cut out" of a toplevel.
Each cutout event carries an id that identifies the physical element. If the compositor describes an element by multiple cutout events these should use the same element id. A typical example is a curved notch that is approximated by several cutout_box elements. Using the same element id allows the client to identify that these belong to the same physical object. Ids are only valid during one configure sequence. No guarantee is given that the same id identifies the same element in different configure sequences.
Typically compositors would only send cutout information when the toplevel enters fullscreen or maxmized state (as specified in the xdg_shell protocol).
The xx_cutouts_v1 object must be destroyed before its underlying xdg_toplevel and wl_surface. Otherwise the defunct_cutouts_object protocol error will be send.