jay_wl_surface_factory_v1 ↗
Copyright
Copyright 2026 Julian Orth 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.
- jay_wl_surface_factory_manager_v1 — manager singleton
- jay_wl_surface_factory_v1 — wl_surface factory
protocol for compositor-created wl_surface objects
This protocol allows the compositor to create wl_surface objects and send them to the client.
This protocol is frozen, meaning that its API and semantics will never change.
jay_wl_surface_factory_v1
jay_wl_surface_factory_manager_v1
- destroy — destroy this manager
- create_factory — create a new factory
manager singleton
This interface is a singleton global.
Since the wl_surface objects created by jay_wl_surface_factory_v1.surface have the same version as this object, the compositor should expose this singleton with the same version it uses for the wl_compositor singleton.
jay_wl_surface_factory_v1
jay_wl_surface_factory_v1
wl_surface factory
This interface can be used by the compositor to create wl_surface objects and send them to the client.
The created wl_surface objects will have the same version as this object, which in turn has the same version as the jay_wl_surface_factory_manager_v1 object. The client should bind jay_wl_surface_factory_manager_v1 with the version it wants for the wl_surface objects.
Each jay_wl_surface_factory_v1 is in one of three states:
Initial: This is the initial state immediately after the object has been created.
Assigned: The factory is assigned to a higher-level producer.
Abandoned: The factory was previously in the assigned state but has been abandoned by the producer.
The object can only transition from the initial to the assigned state and from the assigned to the abandoned state. How and when these transitions happen is defined by higher-level protocols building on top of this protocol.
For example, a higher-level protocol might have a constructor request that accepts a jay_wl_surface_factory_v1 object as an argument and transitions it from the initial to the assigned state. The created higher-level object might have a stop request that transitions the jay_wl_surface_factory_v1 object from the assigned to the abandoned state.
The jay_wl_surface_factory_v1.surface event is only sent while the object is in the assigned state.
Trying to transition the jay_wl_surface_factory_v1 to the assigned state while it is not in the initial state raises the already_assigned error.