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:
Simon Ser 2021-07-28 16:14:59 +02:00
parent d79530d13b
commit d67ce2865e
2 changed files with 1 additions and 3 deletions

View file

@ -45,7 +45,7 @@ extern "C" {
#include "gpuvis_trace_utils.h"
struct wlserver_t wlserver;
static struct wlserver_t wlserver;
Display *g_XWLDpy;

View file

@ -59,8 +59,6 @@ struct wlserver_touch {
struct wl_listener motion;
};
extern struct wlserver_t wlserver;
extern bool run;
enum wlserver_touch_click_mode {