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 | |
| parent | ab32254951825e3543bcb720e3d59baeafb47098 (diff) | |
idek
| -rw-r--r-- | config.h | 2 | ||||
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | dwm.c | 7 |
3 files changed, 2 insertions, 9 deletions
@@ -2,7 +2,7 @@ /* Constants */ #define TERMINAL "st" -#define BROWSER "waterfox" +#define BROWSER "chromium" /* appearance */ static const unsigned int borderpx = 3; /* border pixel of windows */ @@ -28,7 +28,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-r # flags CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} -#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} +#CFLAGS = -g -std=c99 -pedantic -Wall -O3 ${INCS} ${CPPFLAGS} CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -O3 -march=native ${INCS} ${CPPFLAGS} LDFLAGS = ${LIBS} @@ -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); } |
