aboutsummaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-07-10 23:09:28 +0200
committerFederico Angelilli <code@fedang.net>2024-07-10 23:09:28 +0200
commit6f7c05c10766be1e331a5668ef534f5e85cecace (patch)
tree9d4fa8c09b7d7c7762ee98df2c7212c5fc39af08 /src/window.c
parent53691bc0cfa4336408b8208a9062291c36927ab2 (diff)
Cleanup
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/window.c b/src/window.c
index 55ebfe2..813fb4b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -18,18 +18,6 @@
#include "any_log.h"
#include "window.h"
-static xcb_atom_t intern_atom(window_t *window, const char *atom)
-{
- xcb_generic_error_t *error;
- xcb_intern_atom_cookie_t cookie = xcb_intern_atom(window->display->connection, false, strlen(atom), atom);
- xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(window->display->connection, cookie, &error);
-
- assert(error == NULL);
- xcb_atom_t id = reply->atom;
- free(reply);
- return id;
-}
-
static void wm_set_size(window_t *window)
{
xcb_size_hints_t hints = { 0 };