aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2023-03-09 10:53:09 +0300
committerIsaac Freund <mail@isaacfreund.com>2023-03-09 18:51:47 +0000
commitad51983b23c0b38790213e0fe75fc76fea019b83 (patch)
tree941d6cde2206dce4bd9f9f0963748d1e79710539
parent9ac94516b805b350955a2aa17da9fa3c8ca8191f (diff)
xwm: make atom_map static
-rw-r--r--include/xwayland/xwm.h2
-rw-r--r--xwayland/xwm.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/include/xwayland/xwm.h b/include/xwayland/xwm.h
index c69504e8..3d540522 100644
--- a/include/xwayland/xwm.h
+++ b/include/xwayland/xwm.h
@@ -91,8 +91,6 @@ enum atom_name {
ATOM_LAST // keep last
};
-extern const char *const atom_map[ATOM_LAST];
-
struct wlr_xwm {
struct wlr_xwayland *xwayland;
struct wl_event_source *event_source;
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index ac615ffe..4d40f740 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -19,7 +19,7 @@
#include <xcb/xfixes.h>
#include "xwayland/xwm.h"
-const char *const atom_map[ATOM_LAST] = {
+static const char *const atom_map[ATOM_LAST] = {
[WL_SURFACE_ID] = "WL_SURFACE_ID",
[WL_SURFACE_SERIAL] = "WL_SURFACE_SERIAL",
[WM_DELETE_WINDOW] = "WM_DELETE_WINDOW",