wlserver: make global static
Let's prevent other threads from directly accessing it. Helper functions can be introduced as needed.
This commit is contained in:
parent
d79530d13b
commit
d67ce2865e
2 changed files with 1 additions and 3 deletions
|
@ -45,7 +45,7 @@ extern "C" {
|
|||
|
||||
#include "gpuvis_trace_utils.h"
|
||||
|
||||
struct wlserver_t wlserver;
|
||||
static struct wlserver_t wlserver;
|
||||
|
||||
Display *g_XWLDpy;
|
||||
|
||||
|
|
|
@ -59,8 +59,6 @@ struct wlserver_touch {
|
|||
struct wl_listener motion;
|
||||
};
|
||||
|
||||
extern struct wlserver_t wlserver;
|
||||
|
||||
extern bool run;
|
||||
|
||||
enum wlserver_touch_click_mode {
|
||||
|
|
Loading…
Reference in a new issue