mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Fix atom_map usage
This commit is contained in:
parent
f8f4e6a35b
commit
efadbf8424
2 changed files with 11 additions and 9 deletions
|
@ -5,6 +5,16 @@
|
||||||
#include "wlr/xwayland.h"
|
#include "wlr/xwayland.h"
|
||||||
#include "xwm.h"
|
#include "xwm.h"
|
||||||
|
|
||||||
|
const char *atom_map[ATOM_LAST] = {
|
||||||
|
"WL_SURFACE_ID",
|
||||||
|
"WM_PROTOCOLS",
|
||||||
|
"WM_S0",
|
||||||
|
"_NET_SUPPORTED",
|
||||||
|
"_NET_WM_S0",
|
||||||
|
"_NET_WM_STATE",
|
||||||
|
"WM_TAKE_FOCUS",
|
||||||
|
};
|
||||||
|
|
||||||
/* General helpers */
|
/* General helpers */
|
||||||
// TODO: replace this with hash table?
|
// TODO: replace this with hash table?
|
||||||
static struct wlr_xwayland_surface *lookup_surface(struct wl_list *list,
|
static struct wlr_xwayland_surface *lookup_surface(struct wl_list *list,
|
||||||
|
|
|
@ -56,15 +56,7 @@ enum atom_name {
|
||||||
ATOM_LAST,
|
ATOM_LAST,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const char *atom_map[ATOM_LAST] = {
|
extern const char *atom_map[ATOM_LAST];
|
||||||
"WL_SURFACE_ID",
|
|
||||||
"WM_PROTOCOLS",
|
|
||||||
"WM_S0",
|
|
||||||
"_NET_SUPPORTED",
|
|
||||||
"_NET_WM_S0",
|
|
||||||
"_NET_WM_STATE",
|
|
||||||
"WM_TAKE_FOCUS",
|
|
||||||
};
|
|
||||||
|
|
||||||
struct wlr_xwm {
|
struct wlr_xwm {
|
||||||
struct wlr_xwayland *xwayland;
|
struct wlr_xwayland *xwayland;
|
||||||
|
|
Loading…
Reference in a new issue