diff options
| author | Federico Angelilli <code@fedang.net> | 2024-07-10 23:09:28 +0200 |
|---|---|---|
| committer | Federico Angelilli <code@fedang.net> | 2024-07-10 23:09:28 +0200 |
| commit | 6f7c05c10766be1e331a5668ef534f5e85cecace (patch) | |
| tree | 9d4fa8c09b7d7c7762ee98df2c7212c5fc39af08 | |
| parent | 53691bc0cfa4336408b8208a9062291c36927ab2 (diff) | |
Cleanup
| -rw-r--r-- | Makefile | 5 | ||||
| -rw-r--r-- | src/config.c | 1 | ||||
| -rw-r--r-- | src/event.c | 2 | ||||
| -rw-r--r-- | src/window.c | 12 |
4 files changed, 3 insertions, 17 deletions
@@ -10,12 +10,9 @@ PCDEP = xcb \ xcb-shape \ xcb-errors \ "xcb-randr >= 1.5" \ - "glib-2.0 >= 2.44" \ - gio-2.0 \ - json-glib-1.0 \ pangocairo -CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Werror +CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Wall -Werror LDFLAGS := $(shell pkg-config --libs $(PCDEP)) -lm ifdef RELEASE diff --git a/src/config.c b/src/config.c index d676a41..55dd133 100644 --- a/src/config.c +++ b/src/config.c @@ -162,7 +162,6 @@ void config_init(config_t *config, FILE *file) char *key; while ((key = any_ini_stream_next_key(&ini)) != NULL) { - int line = ini.line; char *value = any_ini_stream_next_value(&ini); log_value_trace("Reading config entry", diff --git a/src/event.c b/src/event.c index 4f5a73f..293dec9 100644 --- a/src/event.c +++ b/src/event.c @@ -84,6 +84,7 @@ void event_dispatch(display_t *display, layout_t *layout) log_trace("Processing 'Expose' event"); // Redraw + (void)expose; break; } @@ -92,6 +93,7 @@ void event_dispatch(display_t *display, layout_t *layout) log_trace("Processing 'CreateNotify' event"); // TODO: Circulate top the window if override_redirect == 0 + (void)create; break; } 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 }; |
