From 5f8fd31e271c3463e45cf34170aa2d26f57eab0f Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sat, 17 Aug 2024 10:58:40 +0400 Subject: monocle layout was removed --- dwm.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/dwm.c b/dwm.c index f1d86b2..3148f01 100644 --- a/dwm.c +++ b/dwm.c @@ -181,7 +181,6 @@ static void killclient(const Arg *arg); static void manage(Window w, XWindowAttributes *wa); static void mappingnotify(XEvent *e); static void maprequest(XEvent *e); -static void monocle(Monitor *m); static void motionnotify(XEvent *e); static void movemouse(const Arg *arg); static Client *nexttiled(Client *c); @@ -1110,21 +1109,6 @@ maprequest(XEvent *e) manage(ev->window, &wa); } -void -monocle(Monitor *m) -{ - unsigned int n = 0; - Client *c; - - for (c = m->clients; c; c = c->next) - if (ISVISIBLE(c)) - n++; - if (n > 0) /* override layout symbol */ - snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); - for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); -} - void motionnotify(XEvent *e) { -- cgit v1.2.3