From 701e852b9e30f605ec902bda7c21d88ae8532f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez?= Date: Wed, 15 May 2024 15:54:40 -0500 Subject: [PATCH] fifo-v1: implement protocol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio Gómez --- include/sway/server.h | 2 ++ sway/server.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/sway/server.h b/include/sway/server.h index ccf4a9cc..be2f0523 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -89,6 +89,8 @@ struct sway_server { struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1; struct wl_listener gamma_control_set_gamma; + struct wlr_fifo_manager_v1 *fifo_manager_v1; + struct { struct sway_session_lock *lock; struct wlr_session_lock_manager_v1 *manager; diff --git a/sway/server.c b/sway/server.c index f16a55e2..98f11924 100644 --- a/sway/server.c +++ b/sway/server.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -405,6 +406,9 @@ bool server_init(struct sway_server *server) { wl_list_init(&server->pending_launcher_ctxs); + server->fifo_manager_v1 = wlr_fifo_manager_v1_create(server->wl_display, 1); + wlr_scene_set_fifo_manager_v1(root->root_scene, server->fifo_manager_v1); + // Avoid using "wayland-0" as display socket char name_candidate[16]; for (unsigned int i = 1; i <= 32; ++i) {