~ruther/dwl

6f9f1b9e05119f5f9d0fb7ad3f23f809fb01b3cd — Devin J. Pohly 5 years ago ffc1943
"root" color was easy to make configurable
2 files changed, 4 insertions(+), 3 deletions(-)

M config.h
M dwl.c
M config.h => config.h +3 -0
@@ 1,3 1,6 @@
/* appearance */
static const float rootcolor[]      = {0.3, 0.3, 0.3, 1.0};

/* monitors */
static const MonitorRule monrules[] = {
	/* name     scale */

M dwl.c => dwl.c +1 -3
@@ 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. */