Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fifo-v1: implement protocol #8371

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions include/sway/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions sway/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <wlr/types/wlr_drm.h>
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h>
#include <wlr/types/wlr_fifo_v1.h>
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_fractional_scale_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
Expand Down Expand Up @@ -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) {
Expand Down