diff --git a/include/sway/server.h b/include/sway/server.h index ccf4a9cc26..be2f0523d9 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 f16a55e207..98f11924cf 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) {