xwm: make atom_map static

Kirill Primak 2 years ago committed by Isaac Freund
parent 9ac94516b8
commit ad51983b23

@ -91,8 +91,6 @@ enum atom_name {
ATOM_LAST // keep last ATOM_LAST // keep last
}; };
extern const char *const atom_map[ATOM_LAST];
struct wlr_xwm { struct wlr_xwm {
struct wlr_xwayland *xwayland; struct wlr_xwayland *xwayland;
struct wl_event_source *event_source; struct wl_event_source *event_source;

@ -19,7 +19,7 @@
#include <xcb/xfixes.h> #include <xcb/xfixes.h>
#include "xwayland/xwm.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_ID] = "WL_SURFACE_ID",
[WL_SURFACE_SERIAL] = "WL_SURFACE_SERIAL", [WL_SURFACE_SERIAL] = "WL_SURFACE_SERIAL",
[WM_DELETE_WINDOW] = "WM_DELETE_WINDOW", [WM_DELETE_WINDOW] = "WM_DELETE_WINDOW",

Loading…
Cancel
Save