Skip to content

Commit

Permalink
Add gbm device and header to screencast_common.h
Browse files Browse the repository at this point in the history
  • Loading branch information
columbarius committed Sep 12, 2020
1 parent 96ae0f8 commit dda4da1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/screencast_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <spa/param/video/format-utils.h>
#include <wayland-client-protocol.h>

#include <gbm.h>

// this seems to be right based on
// https://github.com/flatpak/xdg-desktop-portal/blob/309a1fc0cf2fb32cceb91dbc666d20cf0a3202c2/src/screen-cast.c#L955
#define XDP_CAST_PROTO_VER 2
Expand Down Expand Up @@ -76,6 +78,7 @@ struct xdpw_screencast_context {
struct zwlr_screencopy_manager_v1 *screencopy_manager;
struct zxdg_output_manager_v1* xdg_output_manager;
struct wl_shm *shm;
struct gbm_device *gbm;

// cli options
const char *output_name;
Expand Down

0 comments on commit dda4da1

Please sign in to comment.