From 24012d1c6a5620b0cb8d2f76dcf72996f67747d8 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Thu, 3 Jul 2025 18:40:03 +0100 Subject: idek --- dwm.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'dwm.c') diff --git a/dwm.c b/dwm.c index fd3a37e..2aed752 100644 --- a/dwm.c +++ b/dwm.c @@ -117,7 +117,6 @@ typedef struct { } Layout; struct Monitor { - char ltsymbol[16]; float mfact; int nmaster; int num; @@ -401,7 +400,6 @@ arrange(Monitor *m) void arrangemon(Monitor *m) { - strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol); if (m->lt[m->sellt]->arrange) m->lt[m->sellt]->arrange(m); } @@ -679,7 +677,6 @@ createmon(void) m->nmaster = nmaster; m->lt[0] = &layouts[0]; m->lt[1] = &layouts[1 % LENGTH(layouts)]; - strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); return m; } @@ -1094,8 +1091,6 @@ monocle(Monitor *m) 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); } @@ -1313,7 +1308,6 @@ resizemouse(const Arg *arg) break; } } while (ev.type != ButtonRelease); - // XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); XUngrabPointer(dpy, CurrentTime); while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { @@ -1482,7 +1476,6 @@ setlayout(const Arg *arg) selmon->sellt ^= 1; if (arg && arg->v) selmon->lt[selmon->sellt] = (Layout *)arg->v; - strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); if (selmon->sel) arrange(selmon); } -- cgit v1.2.3