commit 975734e2da35f39fe023f02258f718c48b8a4986
parent 54dc2aae7587e02e5824a0db3621582ae978a966
Author: Kebigon <git@kebigon.xyz>
Date: Tue, 21 Jul 2020 19:01:05 +0900
Keep globals in kbgwm.c
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/kbgwm.c b/kbgwm.c
@@ -61,6 +61,8 @@ xcb_screen_t* screen;
uint_least16_t previous_x;
uint_least16_t previous_y;
uint16_t numlockmask = 0;
+xcb_atom_t wm_protocols;
+xcb_atom_t wm_delete_window;
#define focused_client workspaces[current_workspace]
uint_fast8_t current_workspace = 0;
diff --git a/xcbutils.c b/xcbutils.c
@@ -10,6 +10,7 @@
extern xcb_connection_t* c;
extern xcb_window_t root;
extern uint16_t numlockmask;
+extern xcb_atom_t wm_protocols;
void* emalloc(size_t size)
{
diff --git a/xcbutils.h b/xcbutils.h
@@ -28,9 +28,6 @@ xcb_keysym_t xcb_get_keysym(xcb_keycode_t);
#define WM_DELETE_WINDOW "WM_DELETE_WINDOW"
#define WM_PROTOCOLS "WM_PROTOCOLS"
-xcb_atom_t wm_protocols;
-xcb_atom_t wm_delete_window;
-
xcb_atom_t xcb_get_atom(const char*);
bool xcb_send_atom(client*, xcb_atom_t);