From 2e3eb0cf6e3dc07b9da83affc06bc61cc32d48a0 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 27 Aug 2025 18:24:17 +1000 Subject: [PATCH] (change) move child_pid, dpy globals to lib/crywl.c --- src/lib/crywl.c | 5 +++-- src/lib/crywl.h | 2 ++ src/main.c | 1 - 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/crywl.c b/src/lib/crywl.c index 0b9a145..0cd387c 100644 --- a/src/lib/crywl.c +++ b/src/lib/crywl.c @@ -1,12 +1,13 @@ -#include "sys/types.h" +#include +#include #include "crywl.h" /* Static Variables */ +static struct wl_display *dpy; static pid_t child_pid = -1; - void chvt(const Arg *arg) { wlr_session_change_vt(session, arg->ui); } void cleanup(void) { diff --git a/src/lib/crywl.h b/src/lib/crywl.h index 0b3620e..3b5b89b 100644 --- a/src/lib/crywl.h +++ b/src/lib/crywl.h @@ -2,6 +2,8 @@ #ifndef CRYWL_H #define CRYWL_H +#include "util.h" + /* ===== Functional Declarations ===== */ static void chvt(const Arg *arg); static void cleanup(void); diff --git a/src/main.c b/src/main.c index 2c997b1..615e962 100644 --- a/src/main.c +++ b/src/main.c @@ -74,7 +74,6 @@ /* variables */ static int locked; static void *exclusive_focus; -static struct wl_display *dpy; static struct wl_event_loop *event_loop; static struct wlr_backend *backend; static struct wlr_scene *scene;