jay_icon_surface_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_icon_surface_manager_v1 — the manager singleton
- jay_icon_surface_subject_v1 — an icon subject
- jay_icon_surface_factory_v1 — an icon surface factory
- jay_icon_surface_v1 — a concrete icon for a subject
protocol for assigning icons to subjects
This protocol allows clients to assign icons to subjects.
Each icon has a subject that determines what the icon describes. A subject might, for example, be an xdg_toplevel, and the compositor might request the client to draw three icons for the server-side decorations, the task bar, and a tab-switcher respectively.
Since icons are often displayed in multiple locations with different sizes and scales, clients only create a factory object. It is up to the compositor to use this factory to request the client to draw a concrete icon. This process is dynamic: the compositor can request the client to draw a new icon at any time and can inform the client that a concrete icon is no longer required, whenever such a location appears or disappears.
jay_icon_surface_v1
jay_icon_surface_manager_v1
- error — fatal error
- destroy — destroy this manager
- create_factory — create a factory for a subject
the manager singleton
This interface is a singleton global.
jay_icon_surface_v1
jay_icon_surface_subject_v1
- destroy — destroy this object
an icon subject
This interface abstracts over possible icon subjects. This interface is frozen at version 1 to allow other protocols to create jay_icon_surface_subject_v1 objects.
A jay_icon_surface_subject_v1 object is a thin wrapper around a reference to the concrete subject, and using jay_icon_surface_subject_v1 in any request copies that reference. Therefore, the jay_icon_surface_subject_v1 object can be destroyed immediately afterwards.
jay_icon_surface_v1
jay_icon_surface_factory_v1
- error — fatal error
- destroy — destroy this object
- stop — stop the factory
- stopped — the reply to the stop request
- surface — a new jay_icon_surface_v1 object
an icon surface factory
This interface allows the compositor to draw a concrete icon for a subject.
jay_icon_surface_v1
jay_icon_surface_v1
- error — fatal error
- destroy — destroy this object
- finished — the icon is no longer used
- configure — terminates a configuration sequence
- ack_configure — ack a configuration sequence
- configure_size — the size of the icon
a concrete icon for a subject
This interface represents a concrete icon for a subject. It is compositor policy when jay_icon_surface_v1 objects are created and how they are displayed.
Unlike with some wl_surface roles, wl_surface.attach requests have no specified meaning beyond what is specified by wl_surface itself. The client should destroy this object if it no longer wants to provide an icon.
The underlying wl_surface is output-only. That is, it will never receive any input events.