aboutsummaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-08 10:06:41 -0400
committerGitHub <noreply@github.com>2017-10-08 10:06:41 -0400
commit9e1ff2dce9eded87673c8cd7eeb7e31a421f7a22 (patch)
tree4d97bb0ddb8475b992c846f74d39ff8ee3109801 /protocol
parent1908d88fab23660e863928d8fc874bad4593b087 (diff)
parent0ce313530446b801302850f03c4a8d8c20cfd782 (diff)
Merge pull request #140 from emersion/screenshooter
Add screenshooter
Diffstat (limited to 'protocol')
-rw-r--r--protocol/meson.build7
-rw-r--r--protocol/screenshooter.xml16
2 files changed, 21 insertions, 2 deletions
diff --git a/protocol/meson.build b/protocol/meson.build
index 6dc88d76..79871fea 100644
--- a/protocol/meson.build
+++ b/protocol/meson.build
@@ -22,11 +22,14 @@ wayland_scanner_client = generator(
protocols = [
[wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
- 'gamma-control.xml'
+ 'gamma-control.xml',
+ 'screenshooter.xml',
]
client_protocols = [
- [wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml']
+ [wl_protocol_dir, 'unstable/xdg-shell/xdg-shell-unstable-v6.xml'],
+ 'gamma-control.xml',
+ 'screenshooter.xml',
]
wl_protos_src = []
diff --git a/protocol/screenshooter.xml b/protocol/screenshooter.xml
new file mode 100644
index 00000000..fc48eac9
--- /dev/null
+++ b/protocol/screenshooter.xml
@@ -0,0 +1,16 @@
+<protocol name="orbital_screenshooter">
+
+ <interface name="orbital_screenshooter" version="1">
+ <request name="shoot">
+ <arg name="id" type="new_id" interface="orbital_screenshot"/>
+ <arg name="output" type="object" interface="wl_output"/>
+ <arg name="buffer" type="object" interface="wl_buffer"/>
+ </request>
+ </interface>
+
+ <interface name="orbital_screenshot" version="1">
+ <event name="done">
+ </event>
+ </interface>
+
+</protocol>