plasma-shell.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <protocol name="plasma_shell">
  3. <copyright><![CDATA[
  4. SPDX-FileCopyrightText: 2013-2014 Pier Luigi Fiorini
  5. SPDX-License-Identifier: LGPL-2.1-or-later
  6. ]]></copyright>
  7. <interface name="org_kde_plasma_shell" version="8">
  8. <description summary="create shell windows and helpers">
  9. This interface is used by KF5 powered Wayland shells to communicate with
  10. the compositor and can only be bound one time.
  11. Warning! The protocol described in this file is a desktop environment
  12. implementation detail. Regular clients must not use this protocol.
  13. Backward incompatible changes may be added without bumping the major
  14. version of the extension.
  15. </description>
  16. <request name="get_surface">
  17. <description summary="create a shell surface from a surface">
  18. Create a shell surface for an existing surface.
  19. Only one shell surface can be associated with a given
  20. surface.
  21. </description>
  22. <arg name="id" type="new_id" interface="org_kde_plasma_surface"/>
  23. <arg name="surface" type="object" interface="wl_surface"/>
  24. </request>
  25. </interface>
  26. <interface name="org_kde_plasma_surface" version="8">
  27. <description summary="metadata interface">
  28. An interface that may be implemented by a wl_surface, for
  29. implementations that provide the shell user interface.
  30. It provides requests to set surface roles, assign an output
  31. or set the position in output coordinates.
  32. On the server side the object is automatically destroyed when
  33. the related wl_surface is destroyed. On client side,
  34. org_kde_plasma_surface.destroy() must be called before
  35. destroying the wl_surface object.
  36. </description>
  37. <request name="destroy" type="destructor">
  38. <description summary="remove org_kde_plasma_surface interface">
  39. The org_kde_plasma_surface interface is removed from the
  40. wl_surface object that was turned into a shell surface with the
  41. org_kde_plasma_shell.get_surface request.
  42. The shell surface role is lost and wl_surface is unmapped.
  43. </description>
  44. </request>
  45. <request name="set_output">
  46. <description summary="assign an output to this shell surface">
  47. Assign an output to this shell surface.
  48. The compositor will use this information to set the position
  49. when org_kde_plasma_surface.set_position request is
  50. called.
  51. </description>
  52. <arg name="output" type="object" interface="wl_output"/>
  53. </request>
  54. <request name="set_position">
  55. <description summary="change the shell surface position">
  56. Move the surface to new coordinates.
  57. Coordinates are global, for example 50,50 for a 1920,0+1920x1080 output
  58. is 1970,50 in global coordinates space.
  59. Use org_kde_plasma_surface.set_output to assign an output
  60. to this surface.
  61. </description>
  62. <arg name="x" type="int" summary="x coordinate in global space"/>
  63. <arg name="y" type="int" summary="y coordinate in global space"/>
  64. </request>
  65. <enum name="role">
  66. <entry name="normal" value="0"/>
  67. <entry name="desktop" value="1"/>
  68. <entry name="panel" value="2"/>
  69. <entry name="onscreendisplay" value="3"/>
  70. <entry name="notification" value="4"/>
  71. <entry name="tooltip" value="5"/>
  72. <entry name="criticalnotification" value="6" since="6"/>
  73. <entry name="appletpopup" value="7" since="8"/>
  74. </enum>
  75. <request name="set_role">
  76. <description summary="assign a role to this surface">
  77. Assign a role to a shell surface.
  78. The compositor handles surfaces depending on their role.
  79. This request fails if the surface already has a role, this means
  80. the surface role may be assigned only once.
  81. == Surfaces with desktop role ==
  82. Desktop surfaces are placed below all other surfaces and are used
  83. to show the actual desktop view with icons, search results or
  84. controls the user will interact with. What to show depends on the
  85. shell implementation.
  86. The surfaces are placed according to the output coordinates.
  87. No size is imposed to those surfaces, the shell has to resize
  88. them according to output size.
  89. Only one surface per output can have the desktop role.
  90. </description>
  91. <arg name="role" type="uint"/>
  92. </request>
  93. <enum name="panel_behavior">
  94. <entry name="always_visible" value="1"/>
  95. <entry name="auto_hide" value="2"/>
  96. <entry name="windows_can_cover" value="3"/>
  97. <entry name="windows_go_below" value="4"/>
  98. </enum>
  99. <request name="set_panel_behavior">
  100. <description summary="set or unset the panel behavior">
  101. Deprecated in Plasma 6. Has no effect.
  102. </description>
  103. <arg name="flag" type="uint" summary="panel_behavior enum value"/>
  104. </request>
  105. <request name="set_skip_taskbar" since="2">
  106. <description summary="make the window skip the taskbar">
  107. Setting this bit to the window, will make it say it prefers to not be listed in the taskbar.
  108. </description>
  109. <arg name="skip" type="uint" summary="Boolean value that sets whether to skip the taskbar"/>
  110. </request>
  111. <enum name="error" since="4">
  112. <entry name="panel_not_auto_hide" value="0"
  113. summary="Request panel_auto_hide performed on a non auto-hide panel."/>
  114. </enum>
  115. <request name="panel_auto_hide_hide" since="4">
  116. <description summary="Hide the auto-hiding panel"/>
  117. </request>
  118. <request name="panel_auto_hide_show" since="4">
  119. <description summary="Show the auto-hiding panel"/>
  120. </request>
  121. <request name="set_panel_takes_focus" since="4">
  122. <description summary="Whether a panel takes focus">
  123. By default various org_kde_plasma_surface roles do not take focus and cannot be
  124. activated. With this request the compositor can be instructed to pass focus also to this
  125. org_kde_plasma_surface.
  126. </description>
  127. <arg name="takes_focus" type="uint" summary="Boolean value that sets whether the panel takes focus"/>
  128. </request>
  129. <event name="auto_hidden_panel_hidden" since="4">
  130. <description summary="Auto-hiding panel is hidden"/>
  131. </event>
  132. <event name="auto_hidden_panel_shown" since="4">
  133. <description summary="Auto-hiding panel is shown"/>
  134. </event>
  135. <request name="set_skip_switcher" since="5">
  136. <description summary="make the window not appear in a switcher">
  137. Setting this bit will indicate that the window prefers not to be listed in a switcher.
  138. </description>
  139. <arg name="skip" type="uint" summary="Boolean value that sets whether to skip the window switcher."/>
  140. </request>
  141. <request name="open_under_cursor" since="7">
  142. <description summary="open under cursor">
  143. Request the initial position of this surface to be under the current
  144. cursor position. Has to be called before attaching any buffer to this surface.
  145. </description>
  146. </request>
  147. </interface>
  148. </protocol>