Skip to content

Commit 701e852

Browse files
sergio-gdrSergio Gómez
authored and
Sergio Gómez
committed
fifo-v1: implement protocol
Signed-off-by: Sergio Gómez <[email protected]>
1 parent 9a9be01 commit 701e852

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/sway/server.h

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ struct sway_server {
8989
struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1;
9090
struct wl_listener gamma_control_set_gamma;
9191

92+
struct wlr_fifo_manager_v1 *fifo_manager_v1;
93+
9294
struct {
9395
struct sway_session_lock *lock;
9496
struct wlr_session_lock_manager_v1 *manager;

sway/server.c

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <wlr/types/wlr_drm.h>
1919
#include <wlr/types/wlr_export_dmabuf_v1.h>
2020
#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h>
21+
#include <wlr/types/wlr_fifo_v1.h>
2122
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
2223
#include <wlr/types/wlr_fractional_scale_v1.h>
2324
#include <wlr/types/wlr_gamma_control_v1.h>
@@ -405,6 +406,9 @@ bool server_init(struct sway_server *server) {
405406

406407
wl_list_init(&server->pending_launcher_ctxs);
407408

409+
server->fifo_manager_v1 = wlr_fifo_manager_v1_create(server->wl_display, 1);
410+
wlr_scene_set_fifo_manager_v1(root->root_scene, server->fifo_manager_v1);
411+
408412
// Avoid using "wayland-0" as display socket
409413
char name_candidate[16];
410414
for (unsigned int i = 1; i <= 32; ++i) {

0 commit comments

Comments
 (0)