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;