server: eliminate use of global vars

This commit is contained in:
tokyo4j 2025-06-10 05:13:07 +09:00 committed by Johan Malm
parent 88b15f1ca6
commit 85388d194e
2 changed files with 23 additions and 24 deletions

View file

@ -244,6 +244,12 @@ struct server {
} headless;
struct wlr_session *session;
struct wlr_linux_dmabuf_v1 *linux_dmabuf;
struct wlr_compositor *compositor;
struct wl_event_source *sighup_source;
struct wl_event_source *sigint_source;
struct wl_event_source *sigterm_source;
struct wl_event_source *sigchld_source;
struct wlr_xdg_shell *xdg_shell;
struct wlr_layer_shell_v1 *layer_shell;