Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

screencopy: Add clip regions #106

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 26 additions & 2 deletions unstable/wlr-screencopy-unstable-v1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
interface version number is reset.
</description>

<interface name="zwlr_screencopy_manager_v1" version="3">
<interface name="zwlr_screencopy_manager_v1" version="4">
<description summary="manager to inform clients and begin capturing">
This object is a manager which offers requests to start capturing from a
source.
Expand Down Expand Up @@ -80,7 +80,7 @@
</request>
</interface>

<interface name="zwlr_screencopy_frame_v1" version="3">
<interface name="zwlr_screencopy_frame_v1" version="4">
<description summary="a frame ready for copy">
This object represents a single frame.

Expand Down Expand Up @@ -228,5 +228,29 @@
types, and send a "copy" request.
</description>
</event>

<!-- Version 4 additions -->
<request name="set_clip_region" since="4">
<description summary="set clip region">
Sets the clip region for the subsequent copy request. This tells the
compositor that it needn't copy outside the given region. The default
clip region contains the whole frame.
</description>
<arg name="x" type="uint" summary="region x coordinates"/>
<arg name="y" type="uint" summary="region y coordinates"/>
<arg name="width" type="uint" summary="region width"/>
<arg name="height" type="uint" summary="region height"/>
</request>

<request name="add_clip_region" since="4">
<description summary="add box to clip region">
Adds the given box to the clip region. This can be used to compose a
more fine grained region.
</description>
<arg name="x" type="uint" summary="region x coordinates"/>
<arg name="y" type="uint" summary="region y coordinates"/>
<arg name="width" type="uint" summary="region width"/>
<arg name="height" type="uint" summary="region height"/>
</request>
</interface>
</protocol>