xdg-dialog-v1.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="xdg_dialog_v1">
  3. <copyright>
  4. Copyright © 2023 Carlos Garnacho
  5. Permission is hereby granted, free of charge, to any person obtaining a
  6. copy of this software and associated documentation files (the "Software"),
  7. to deal in the Software without restriction, including without limitation
  8. the rights to use, copy, modify, merge, publish, distribute, sublicense,
  9. and/or sell copies of the Software, and to permit persons to whom the
  10. Software is furnished to do so, subject to the following conditions:
  11. The above copyright notice and this permission notice (including the next
  12. paragraph) shall be included in all copies or substantial portions of the
  13. Software.
  14. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  17. THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  20. DEALINGS IN THE SOFTWARE.
  21. </copyright>
  22. <interface name="xdg_wm_dialog_v1" version="1">
  23. <description summary="create dialogs related to other toplevels">
  24. The xdg_wm_dialog_v1 interface is exposed as a global object allowing
  25. to register surfaces with a xdg_toplevel role as "dialogs" relative to
  26. another toplevel.
  27. The compositor may let this relation influence how the surface is
  28. placed, displayed or interacted with.
  29. Warning! The protocol described in this file is currently in the testing
  30. phase. Backward compatible changes may be added together with the
  31. corresponding interface version bump. Backward incompatible changes can
  32. only be done by creating a new major version of the extension.
  33. </description>
  34. <enum name="error">
  35. <entry name="already_used" value="0"
  36. summary="the xdg_toplevel object has already been used to create a xdg_dialog_v1"/>
  37. </enum>
  38. <request name="destroy" type="destructor">
  39. <description summary="destroy the dialog manager object">
  40. Destroys the xdg_wm_dialog_v1 object. This does not affect
  41. the xdg_dialog_v1 objects generated through it.
  42. </description>
  43. </request>
  44. <request name="get_xdg_dialog">
  45. <description summary="create a dialog object">
  46. Creates a xdg_dialog_v1 object for the given toplevel. See the interface
  47. description for more details.
  48. Compositors must raise an already_used error if clients attempt to
  49. create multiple xdg_dialog_v1 objects for the same xdg_toplevel.
  50. </description>
  51. <arg name="id" type="new_id" interface="xdg_dialog_v1"/>
  52. <arg name="toplevel" type="object" interface="xdg_toplevel"/>
  53. </request>
  54. </interface>
  55. <interface name="xdg_dialog_v1" version="1">
  56. <description summary="dialog object">
  57. A xdg_dialog_v1 object is an ancillary object tied to a xdg_toplevel. Its
  58. purpose is hinting the compositor that the toplevel is a "dialog" (e.g. a
  59. temporary window) relative to another toplevel (see
  60. xdg_toplevel.set_parent). If the xdg_toplevel is destroyed, the xdg_dialog_v1
  61. becomes inert.
  62. Through this object, the client may provide additional hints about
  63. the purpose of the secondary toplevel. This interface has no effect
  64. on toplevels that are not attached to a parent toplevel.
  65. </description>
  66. <request name="destroy" type="destructor">
  67. <description summary="destroy the dialog object">
  68. Destroys the xdg_dialog_v1 object. If this object is destroyed
  69. before the related xdg_toplevel, the compositor should unapply its
  70. effects.
  71. </description>
  72. </request>
  73. <request name="set_modal">
  74. <description summary="mark dialog as modal">
  75. Hints that the dialog has "modal" behavior. Modal dialogs typically
  76. require to be fully addressed by the user (i.e. closed) before resuming
  77. interaction with the parent toplevel, and may require a distinct
  78. presentation.
  79. Clients must implement the logic to filter events in the parent
  80. toplevel on their own.
  81. Compositors may choose any policy in event delivery to the parent
  82. toplevel, from delivering all events unfiltered to using them for
  83. internal consumption.
  84. </description>
  85. </request>
  86. <request name="unset_modal">
  87. <description summary="mark dialog as not modal">
  88. Drops the hint that this dialog has "modal" behavior. See
  89. xdg_dialog_v1.set_modal for more details.
  90. </description>
  91. </request>
  92. </interface>
  93. </protocol>