From eeb5831bb4d62c35eca6db333137a9b8bf682e6e Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Sat, 6 Jun 2020 11:04:36 -0700 Subject: deprecated wayland --- sys/cmd/dwm/layout.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 sys/cmd/dwm/layout.c (limited to 'sys/cmd/dwm/layout.c') diff --git a/sys/cmd/dwm/layout.c b/sys/cmd/dwm/layout.c deleted file mode 100644 index f7a2c60..0000000 --- a/sys/cmd/dwm/layout.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "dwm.h" - -void -tile(Monitor *m) -{ - Client *c; - uint i, n, h, mw, my, ty; - - n = 0; - wl_list_for_each(c, &dwm.tiles, link.tiles) - if (VISIBLEON(c, m) && !c->floating) - n++; - - if (n == 0) - return; - - if (n > m->nmaster) - mw = m->nmaster ? m->area.win.width * m->mfact : 0; - else - mw = m->area.win.width; - - i = my = ty = 0; - wl_list_for_each(c, &dwm.tiles, link.tiles) { - if (!VISIBLEON(c, m) || c->floating) - continue; - if (i < m->nmaster) { - h = (m->area.win.height - my) / (MIN(n, m->nmaster) - i); - resize(c, m->area.win.x, m->area.win.y + my, mw, h, 0); - my += c->dim.height; - } else { - h = (m->area.win.height - ty) / (n - i); - resize(c, m->area.win.x + mw, m->area.win.y + ty, m->area.win.width - mw, h, 0); - ty += c->dim.height; - } - i++; - } -} -- cgit v1.2.1