aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-19 08:01:38 -0400
committerGitHub <noreply@github.com>2018-09-19 08:01:38 -0400
commitadbf21eb83da23f94c3d85a584f4d1c3465aa7f4 (patch)
treedf27714d713c5937a692c7dd1f1b5b347f59081b /examples
parent3693fae0c44d83cab2c701bd44b80d8f6242781e (diff)
parent3df602a62da5024bfa4e68f87355f789632973a1 (diff)
Merge pull request #1245 from emersion/capture-disable-hw-cursors
Disable hardware cursors when capturing output
Diffstat (limited to 'examples')
-rw-r--r--examples/dmabuf-capture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/dmabuf-capture.c b/examples/dmabuf-capture.c
index de3567f4..2c510b5a 100644
--- a/examples/dmabuf-capture.c
+++ b/examples/dmabuf-capture.c
@@ -45,6 +45,7 @@ struct capture_context {
/* Target */
struct wl_output *target_output;
+ bool with_cursor;
/* Main frame callback */
struct zwlr_export_dmabuf_frame_v1 *frame_callback;
@@ -454,7 +455,7 @@ static const struct zwlr_export_dmabuf_frame_v1_listener frame_listener = {
static void register_cb(struct capture_context *ctx) {
ctx->frame_callback = zwlr_export_dmabuf_manager_v1_capture_output(
- ctx->export_manager, 0, ctx->target_output);
+ ctx->export_manager, ctx->with_cursor, ctx->target_output);
zwlr_export_dmabuf_frame_v1_add_listener(ctx->frame_callback,
&frame_listener, ctx);
@@ -802,6 +803,7 @@ int main(int argc, char *argv[]) {
}
ctx.target_output = o->output;
+ ctx.with_cursor = true;
ctx.hw_device_type = av_hwdevice_find_type_by_name(argv[2]);
ctx.hardware_device = argv[3];