From 26c953b0ad9aeb72f7bbb05bda2205ab9ecd9117 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 24 Feb 2024 10:28:31 +0100 Subject: [PATCH] Add support for primary selection --- cage.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cage.c b/cage.c index 3da875d..f109788 100644 --- a/cage.c +++ b/cage.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -361,6 +362,12 @@ main(int argc, char *argv[]) goto end; } + if (!wlr_primary_selection_v1_device_manager_create(server.wl_display)) { + wlr_log(WLR_ERROR, "Unable to create primary selection device manager"); + ret = 1; + goto end; + } + /* Configure a listener to be notified when new outputs are * available on the backend. We use this only to detect the * first output and ignore subsequent outputs. */