aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-04-21 21:58:13 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-04-21 21:58:13 -0500
commit6f9f1b9e05119f5f9d0fb7ad3f23f809fb01b3cd (patch)
tree2a90032980bd5107c090b9b2c4c962d4f022d3f5
parentffc19434ee2009a0e8bdf7d830b3744cd79e4eb8 (diff)
"root" color was easy to make configurable
-rw-r--r--config.h3
-rw-r--r--dwl.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/config.h b/config.h
index 0c7d727..633d035 100644
--- a/config.h
+++ b/config.h
@@ -1,3 +1,6 @@
+/* appearance */
+static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
+
/* monitors */
static const MonitorRule monrules[] = {
/* name scale */
diff --git a/dwl.c b/dwl.c
index 7686323..0c45ca5 100644
--- a/dwl.c
+++ b/dwl.c
@@ -701,9 +701,7 @@ rendermon(struct wl_listener *listener, void *data)
}
/* Begin the renderer (calls glViewport and some other GL sanity checks) */
wlr_renderer_begin(renderer, m->wlr_output->width, m->wlr_output->height);
-
- float color[4] = {0.3, 0.3, 0.3, 1.0};
- wlr_renderer_clear(renderer, color);
+ wlr_renderer_clear(renderer, rootcolor);
/* Each subsequent window we render is rendered on top of the last. Because
* our client list is ordered front-to-back, we iterate over it backwards. */