aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAurélien Aptel <aurelien.aptel@gmail.com>2010-07-08 16:31:41 +0200
committerAurélien Aptel <aurelien.aptel@gmail.com>2010-07-08 16:31:41 +0200
commit1552e2f1b959aac64ee44eed3204e6daf074a3ee (patch)
tree1e76a2eb2ca38a8a0f2217993f823535f30a8a3a
parentc7861318e206f88e2f970185c55185ba6891ebfb (diff)
downloadst-1552e2f1b959aac64ee44eed3204e6daf074a3ee.tar.gz
st-1552e2f1b959aac64ee44eed3204e6daf074a3ee.tar.bz2
fixed background color bug (thx Devin J. Pohly).
-rwxr-xr-xst.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/st.c b/st.c
index a571a28..6b525c3 100755
--- a/st.c
+++ b/st.c
@@ -597,7 +597,7 @@ tsetattr(int *attr, int l) {
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 @@ xclear(int x1, int y1, int x2, int y2) {
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 @@ xhints(void)
.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