diff options
author | Billli11 <Billli11HKB@Gmail.com> | 2023-12-28 18:28:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 11:28:28 +0100 |
commit | 0aceff74696f03d306dc9de5473d9ed7afb73f67 (patch) | |
tree | a6b60b4e88df07a43c08144819ef71408ef20a11 | |
parent | 64d644f0da15e4aef85ca1800b90aa65e333933c (diff) |
Remove wlr_presentation in sway_server struct
It is no longer in use.
-rw-r--r-- | include/sway/server.h | 2 | ||||
-rw-r--r-- | sway/server.c | 3 |
2 files changed, 1 insertions, 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); |