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. */