From 0aceff74696f03d306dc9de5473d9ed7afb73f67 Mon Sep 17 00:00:00 2001 From: Billli11 Date: Thu, 28 Dec 2023 18:28:28 +0800 Subject: Remove wlr_presentation in sway_server struct It is no longer in use. --- include/sway/server.h | 2 -- sway/server.c | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/sway/server.h b/include/sway/server.h index bf195706..b0e8dfd6 100644 --- a/include/sway/server.h +++ b/include/sway/server.h @@ -82,8 +82,6 @@ struct sway_server { struct wlr_drm_lease_v1_manager *drm_lease_manager; struct wl_listener drm_lease_request; - struct wlr_presentation *presentation; - struct wlr_pointer_constraints_v1 *pointer_constraints; struct wl_listener pointer_constraint; diff --git a/sway/server.c b/sway/server.c index d173581f..69a9f27e 100644 --- a/sway/server.c +++ b/sway/server.c @@ -259,8 +259,7 @@ bool server_init(struct sway_server *server) { wl_signal_add(&server->pointer_constraints->events.new_constraint, &server->pointer_constraint); - server->presentation = - wlr_presentation_create(server->wl_display, server->backend); + wlr_presentation_create(server->wl_display, server->backend); server->output_manager_v1 = wlr_output_manager_v1_create(server->wl_display); -- cgit v1.2.3