diff options
| author | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-07-03 18:40:03 +0100 |
|---|---|---|
| committer | ProsperousPotato <ProsperousPotato@users.noreply.github.com> | 2025-07-03 18:40:03 +0100 |
| commit | 24012d1c6a5620b0cb8d2f76dcf72996f67747d8 (patch) | |
| tree | c067c6a6b494266122b016a9010b13810cb3a02b /dwm.c | |
| parent | ab32254951825e3543bcb720e3d59baeafb47098 (diff) | |
idek
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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); } |
