cursor_shape_v1 ↗
Copyright
Copyright 2018 The Chromium Authors Copyright 2023 Simon Ser 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.
- wp_cursor_shape_manager_v1 — cursor shape manager
- wp_cursor_shape_device_v1 — cursor shape for a device
cursor_shape_v1
wp_cursor_shape_manager_v1
Version 2
- destroy — destroy the manager
- get_pointer — manage the cursor shape of a pointer device
- get_tablet_tool_v2 — manage the cursor shape of a tablet tool device
Compositor Support
Version 2
cosmic 1.0.0
jay 1.14.0
kwin 6.7
muffin 6.7.4
mutter 51
niri 26.04
Version 1
hyprland 0.52.1
labwc 0.20.2
phoc 0.55
river 0.3.13
sway 1.11
treeland 0.8.0
cursor shape manager
This global offers an alternative, optional way to set cursor images. This new way uses enumerated cursors instead of a wl_surface like wl_pointer.set_cursor does.
Warning! The protocol described in this file is currently in the testing phase. 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.
cursor_shape_v1
wp_cursor_shape_device_v1
Version 2
- shape — cursor shapes
- error
- destroy — destroy the cursor shape device
- set_shape — set device cursor to the shape
cursor shape for a device
This interface allows clients to set the cursor shape.