This commit is contained in:
Sergio 2025-10-05 13:26:05 -06:00 committed by GitHub
commit 21bf6509e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -90,6 +90,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;

View file

@ -20,6 +20,7 @@
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_ext_foreign_toplevel_list_v1.h>
#include <wlr/types/wlr_fixes.h>
#include <wlr/types/wlr_fifo_v1.h>
#include <wlr/types/wlr_foreign_toplevel_management_v1.h>
#include <wlr/types/wlr_ext_image_capture_source_v1.h>
#include <wlr/types/wlr_ext_image_copy_capture_v1.h>
@ -485,6 +486,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) {