mirror of
https://gitlab.freedesktop.org/wlroots/wlr-protocols.git
synced 2026-05-05 07:38:21 +02:00
screencopy: remove invalid_output_region, format and stride are now enforced
This commit is contained in:
parent
d105604f15
commit
9b652d3dd4
1 changed files with 8 additions and 15 deletions
|
|
@ -43,11 +43,6 @@
|
||||||
source.
|
source.
|
||||||
</description>
|
</description>
|
||||||
|
|
||||||
<enum name="error">
|
|
||||||
<entry name="invalid_output_region" value="0"
|
|
||||||
summary="tried to capture an invalid output region"/>
|
|
||||||
</enum>
|
|
||||||
|
|
||||||
<request name="capture_output">
|
<request name="capture_output">
|
||||||
<description summary="capture an output">
|
<description summary="capture an output">
|
||||||
Capture the next frame of an entire output.
|
Capture the next frame of an entire output.
|
||||||
|
|
@ -63,8 +58,8 @@
|
||||||
Capture the next frame of an output's region.
|
Capture the next frame of an output's region.
|
||||||
|
|
||||||
The region is given in output logical coordinates, see
|
The region is given in output logical coordinates, see
|
||||||
xdg_output.logical_size. Trying to capture a region spanning outside the
|
xdg_output.logical_size. The region will be clipped to the output's
|
||||||
output extents is a protocol error.
|
extents.
|
||||||
</description>
|
</description>
|
||||||
<arg name="frame" type="new_id" interface="zwlr_screencopy_frame_v1"/>
|
<arg name="frame" type="new_id" interface="zwlr_screencopy_frame_v1"/>
|
||||||
<arg name="overlay_cursor" type="int"
|
<arg name="overlay_cursor" type="int"
|
||||||
|
|
@ -104,14 +99,13 @@
|
||||||
Provides information about the frame's buffer. This event is sent once
|
Provides information about the frame's buffer. This event is sent once
|
||||||
as soon as the frame is created.
|
as soon as the frame is created.
|
||||||
|
|
||||||
The client should then create a buffer with the provided width and
|
The client should then create a buffer with the provided attributes, and
|
||||||
height, and send a "copy" request. It can optionally create a buffer
|
send a "copy" request.
|
||||||
with the preferred format and stride.
|
|
||||||
</description>
|
</description>
|
||||||
|
<arg name="format" type="uint" summary="buffer format"/>
|
||||||
<arg name="width" type="uint" summary="buffer width"/>
|
<arg name="width" type="uint" summary="buffer width"/>
|
||||||
<arg name="height" type="uint" summary="buffer height"/>
|
<arg name="height" type="uint" summary="buffer height"/>
|
||||||
<arg name="format" type="uint" summary="preferred DRM_FORMAT"/>
|
<arg name="stride" type="uint" summary="buffer stride"/>
|
||||||
<arg name="stride" type="uint" summary="preferred stride"/>
|
|
||||||
</event>
|
</event>
|
||||||
|
|
||||||
<request name="copy">
|
<request name="copy">
|
||||||
|
|
@ -129,9 +123,8 @@
|
||||||
<enum name="error">
|
<enum name="error">
|
||||||
<entry name="already_used" value="0"
|
<entry name="already_used" value="0"
|
||||||
summary="the object has already been used to copy a wl_buffer"/>
|
summary="the object has already been used to copy a wl_buffer"/>
|
||||||
<entry name="invalid_format" value="1" summary="format not supported"/>
|
<entry name="invalid_buffer" value="1"
|
||||||
<entry name="invalid_dimensions" value="2"
|
summary="buffer attributes are invalid"/>
|
||||||
summary="invalid width or height"/>
|
|
||||||
</enum>
|
</enum>
|
||||||
|
|
||||||
<enum name="flags" bitfield="true">
|
<enum name="flags" bitfield="true">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue