all repos — st @ 499c70cda048e9d62ab9085efb3a6d484c64bf37

st (suckless terminal) config

fixed background color bug (thx Devin J. Pohly).
Aurélien Aptel aurelien.aptel@gmail.com
commit

499c70cda048e9d62ab9085efb3a6d484c64bf37

parent

2f96cfeadaac871456e2e2acae3b997c23c93d63

1 files changed, 5 insertions(+), 5 deletions(-)

jump to
M st.cst.c

@@ -597,7 +597,7 @@ case 39:

term.c.attr.fg = DefaultFG; break; case 49: - term.c.attr.fg = DefaultBG; + term.c.attr.bg = DefaultBG; break; default: if(BETWEEN(attr[i], 30, 37))

@@ -1032,9 +1032,9 @@

void xhints(void) { - XClassHint chint = {TNAME, TNAME}; - XWMHints wmhint = {.flags = InputHint, .input = 1}; - XSizeHints shint = { + XClassHint class = {TNAME, TNAME}; + XWMHints wm = {.flags = InputHint, .input = 1}; + XSizeHints size = { .flags = PSize | PResizeInc | PBaseSize, .height = xw.h, .width = xw.w,

@@ -1043,7 +1043,7 @@ .width_inc = xw.cw,

.base_height = 2*BORDER, .base_width = 2*BORDER, }; - XSetWMProperties(xw.dis, xw.win, NULL, NULL, NULL, 0, &shint, &wmhint, &chint); + XSetWMProperties(xw.dis, xw.win, NULL, NULL, NULL, 0, &size, &wm, &class); } void