pointer-warp-v1.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="pointer_warp_v1">
  3. <copyright>
  4. Copyright © 2024 Neal Gompa
  5. Copyright © 2024 Xaver Hugl
  6. Copyright © 2024 Matthias Klumpp
  7. Copyright © 2024 Vlad Zahorodnii
  8. Permission is hereby granted, free of charge, to any person obtaining a
  9. copy of this software and associated documentation files (the "Software"),
  10. to deal in the Software without restriction, including without limitation
  11. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12. and/or sell copies of the Software, and to permit persons to whom the
  13. Software is furnished to do so, subject to the following conditions:
  14. The above copyright notice and this permission notice (including the next
  15. paragraph) shall be included in all copies or substantial portions of the
  16. Software.
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  21. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  22. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  23. DEALINGS IN THE SOFTWARE.
  24. </copyright>
  25. <interface name="wp_pointer_warp_v1" version="1">
  26. <description summary="reposition the pointer to a location on a surface">
  27. This global interface allows applications to request the pointer to be
  28. moved to a position relative to a wl_surface.
  29. Note that if the desired behavior is to constrain the pointer to an area
  30. or lock it to a position, this protocol does not provide a reliable way
  31. to do that. The pointer constraint and pointer lock protocols should be
  32. used for those use cases instead.
  33. Warning! The protocol described in this file is currently in the testing
  34. phase. Backward compatible changes may be added together with the
  35. corresponding interface version bump. Backward incompatible changes can
  36. only be done by creating a new major version of the extension.
  37. </description>
  38. <request name="destroy" type="destructor">
  39. <description summary="destroy the warp manager">
  40. Destroy the pointer warp manager.
  41. </description>
  42. </request>
  43. <request name="warp_pointer">
  44. <description summary="reposition the pointer">
  45. Request the compositor to move the pointer to a surface-local position.
  46. Whether or not the compositor honors the request is implementation defined,
  47. but it should
  48. - honor it if the surface has pointer focus, including
  49. when it has an implicit pointer grab
  50. - reject it if the enter serial is incorrect
  51. - reject it if the requested position is outside of the surface
  52. Note that the enter serial is valid for any surface of the client,
  53. and does not have to be from the surface the pointer is warped to.
  54. </description>
  55. <arg name="surface" type="object" interface="wl_surface"
  56. summary="surface to position the pointer on"/>
  57. <arg name="pointer" type="object" interface="wl_pointer"
  58. summary="the pointer that should be repositioned"/>
  59. <arg name="x" type="fixed"/>
  60. <arg name="y" type="fixed"/>
  61. <arg name="serial" type="uint" summary="serial number of the enter event"/>
  62. </request>
  63. </interface>
  64. </protocol>