]> git.mdlowis.com Git - proto/labwc.git/commitdiff
server: support screen recording
authorJohan Malm <jgm323@gmail.com>
Mon, 21 Sep 2020 18:52:14 +0000 (19:52 +0100)
committerJohan Malm <jgm323@gmail.com>
Mon, 21 Sep 2020 18:54:41 +0000 (19:54 +0100)
Works with wf-recorder

src/server.c

index 0014d59aeb7301b8c2589c66ba1d2b7c54682201..11a7746e1987387f55f39615616eb012f0fcaa28 100644 (file)
@@ -5,6 +5,7 @@
 #include <wlr/types/wlr_data_control_v1.h>
 #include <wlr/types/wlr_gamma_control_v1.h>
 #include <wlr/types/wlr_primary_selection_v1.h>
+#include <wlr/types/wlr_xdg_output_v1.h>
 
 static struct wlr_backend *backend;
 static struct wlr_compositor *compositor;
@@ -226,6 +227,8 @@ void server_init(struct server *server)
        wlr_data_control_manager_v1_create(server->wl_display);
        wlr_gamma_control_manager_v1_create(server->wl_display);
        wlr_primary_selection_v1_device_manager_create(server->wl_display);
+       wlr_xdg_output_manager_v1_create(server->wl_display,
+                                        server->output_layout);
 
        /* Init xwayland */
        server->xwayland =