Merge branch 'xdg-toplevel-restricted-state' into 'main'

xdg-shell/xdg_toplevel: add restricted state

See merge request wayland/wayland-protocols!420
This commit is contained in:
Mihai Fufezan 2025-12-17 01:26:57 +02:00
commit caaa77b574

View file

@ -29,7 +29,7 @@
DEALINGS IN THE SOFTWARE. DEALINGS IN THE SOFTWARE.
</copyright> </copyright>
<interface name="xdg_wm_base" version="7"> <interface name="xdg_wm_base" version="8">
<description summary="create desktop-style surfaces"> <description summary="create desktop-style surfaces">
The xdg_wm_base interface is exposed as a global object enabling clients The xdg_wm_base interface is exposed as a global object enabling clients
to turn their wl_surfaces into windows in a desktop environment. It to turn their wl_surfaces into windows in a desktop environment. It
@ -122,7 +122,7 @@
</event> </event>
</interface> </interface>
<interface name="xdg_positioner" version="7"> <interface name="xdg_positioner" version="8">
<description summary="child surface positioner"> <description summary="child surface positioner">
The xdg_positioner provides a collection of rules for the placement of a The xdg_positioner provides a collection of rules for the placement of a
child surface relative to a parent surface. Rules can be defined to ensure child surface relative to a parent surface. Rules can be defined to ensure
@ -407,7 +407,7 @@
</request> </request>
</interface> </interface>
<interface name="xdg_surface" version="7"> <interface name="xdg_surface" version="8">
<description summary="desktop user interface surface base interface"> <description summary="desktop user interface surface base interface">
An interface that may be implemented by a wl_surface, for An interface that may be implemented by a wl_surface, for
implementations that provide a desktop-style user interface. implementations that provide a desktop-style user interface.
@ -620,7 +620,7 @@
</interface> </interface>
<interface name="xdg_toplevel" version="7"> <interface name="xdg_toplevel" version="8">
<description summary="toplevel surface"> <description summary="toplevel surface">
This interface defines an xdg_surface role which allows a surface to, This interface defines an xdg_surface role which allows a surface to,
among other things, set window-like properties such as maximize, among other things, set window-like properties such as maximize,
@ -946,6 +946,15 @@
window. window.
</description> </description>
</entry> </entry>
<entry name="restricted" value="14" since="8">
<description summary="the surface's contents are restricted">
The surface's contents are restricted. The client must not draw any
client-side decorations that are outside the window geometry.
The window geometry specified in the configure event must be obeyed by the
client, or the xdg_wm_base.invalid_surface_state error is raised.
</description>
</entry>
</enum> </enum>
<request name="set_max_size"> <request name="set_max_size">
@ -1242,7 +1251,7 @@
</event> </event>
</interface> </interface>
<interface name="xdg_popup" version="7"> <interface name="xdg_popup" version="8">
<description summary="short-lived, popup surfaces for menus"> <description summary="short-lived, popup surfaces for menus">
A popup surface is a short-lived, temporary surface. It can be used to A popup surface is a short-lived, temporary surface. It can be used to
implement for example menus, popovers, tooltips and other similar user implement for example menus, popovers, tooltips and other similar user