(change) move child_pid, dpy globals to lib/crywl.c
This commit is contained in:
parent
f4fa50d4bf
commit
2e3eb0cf6e
3 changed files with 5 additions and 3 deletions
|
|
@ -1,12 +1,13 @@
|
|||
#include "sys/types.h"
|
||||
#include <stddef.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue