summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-05-09 22:48:19 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-05-09 22:48:19 -0500
commit59d16e491aa22de5702e978e2247e90b1ce4c607 (patch)
tree07804568f05bd74638c45dd274678cd0df1994d6 /dwl.c
parent0bd4eb8ff36141c7d6a465dfcf1247c186316954 (diff)
add screencopy support
While we're taking low-hanging fruit here...
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index c5230de..3a0b5c4 100644
--- a/dwl.c
+++ b/dwl.c
@@ -24,6 +24,7 @@
#include <wlr/types/wlr_pointer.h>
#include <wlr/types/wlr_primary_selection.h>
#include <wlr/types/wlr_primary_selection_v1.h>
+#include <wlr/types/wlr_screencopy_v1.h>
#include <wlr/types/wlr_seat.h>
#include <wlr/types/wlr_xcursor_manager.h>
#include <wlr/types/wlr_xdg_shell.h>
@@ -1224,6 +1225,7 @@ setup(void)
* the clients cannot set the selection directly without compositor approval,
* see the setsel() function. */
wlr_compositor_create(dpy, drw);
+ wlr_screencopy_manager_v1_create(dpy);
wlr_data_device_manager_create(dpy);
wlr_primary_selection_v1_device_manager_create(dpy);