forked from vitrine/wmaker
Move the global dpy behind a distinct BUILD rule.
This commit is contained in:
@@ -4,6 +4,13 @@ cc_library(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "global_display",
|
||||
hdrs = ["global_display.h"],
|
||||
srcs = ["global_display.c"],
|
||||
deps = ["@x11//:lib"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "wconfig",
|
||||
hdrs = ["wconfig.h"],
|
||||
|
||||
@@ -284,8 +284,6 @@ enum {
|
||||
|
||||
|
||||
/****** Global Variables ******/
|
||||
extern Display *dpy;
|
||||
|
||||
extern struct wmaker_global_variables {
|
||||
/* Tracking of the state of the program */
|
||||
struct {
|
||||
|
||||
5
bazel/wmaker/global_display.c
Normal file
5
bazel/wmaker/global_display.c
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "wmaker/global_display.h"
|
||||
|
||||
#include "X11/Xlib.h"
|
||||
|
||||
Display *dpy;
|
||||
8
bazel/wmaker/global_display.h
Normal file
8
bazel/wmaker/global_display.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef WGLOBAL_DISPLAY_H_
|
||||
#define WGLOBAL_DISPLAY_H_
|
||||
|
||||
#include "X11/Xlib.h"
|
||||
|
||||
extern Display *dpy;
|
||||
|
||||
#endif // WGLOBAL_DISPLAY_H_
|
||||
@@ -65,8 +65,6 @@ struct wmaker_global_variables w_global;
|
||||
|
||||
/* general info */
|
||||
|
||||
Display *dpy;
|
||||
|
||||
char *ProgName;
|
||||
|
||||
struct WPreferences wPreferences;
|
||||
|
||||
Reference in New Issue
Block a user