From 592bc54474af24091911f7864b79c0b36a5a2db8 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Sat, 20 Nov 2021 17:11:00 +0500 Subject: [PATCH] Fix typo. The same one. Again. I really need a compiler warning about implicit conversion to bool. --- src/dwm/layouts.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dwm/layouts.c b/src/dwm/layouts.c index 47ab338..6b05d59 100644 --- a/src/dwm/layouts.c +++ b/src/dwm/layouts.c @@ -8,7 +8,7 @@ centeredmaster(Monitor *m) for (Client *c = nexttiled(m->clients); c; c = nexttiled(c->next), ++n); if (n == 0) return; - const bool master_area_factor = + const float master_area_factor = unit_get_master_area_factor(m->pertag->units[m->pertag->curtag]); unsigned int mx = 0; @@ -111,7 +111,7 @@ horizontile(Monitor *m) for (Client *c = nexttiled(m->clients); c; c = nexttiled(c->next), ++n); if (n == 0) return; - const bool master_area_factor = + const float master_area_factor = unit_get_master_area_factor(m->pertag->units[m->pertag->curtag]); const bool is_fullscreen = m->sel == NULL ? false : m->sel->isfullscreen; @@ -208,7 +208,7 @@ tile(Monitor *m) for (Client *c = nexttiled(m->clients); c; c = nexttiled(c->next), ++n); if (n == 0) return; - const bool master_area_factor = + const float master_area_factor = unit_get_master_area_factor(m->pertag->units[m->pertag->curtag]); const bool is_fullscreen = m->sel == NULL ? false : m->sel->isfullscreen;