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
commit499c70cda048e9d62ab9085efb3a6d484c64bf37 (patch)
tree1e76a2eb2ca38a8a0f2217993f823535f30a8a3a
parent2f96cfeadaac871456e2e2acae3b997c23c93d63 (diff)
downloadst-499c70cda048e9d62ab9085efb3a6d484c64bf37.tar.gz
st-499c70cda048e9d62ab9085efb3a6d484c64bf37.zip
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) {
597 term.c.attr.fg = DefaultFG; 597 term.c.attr.fg = DefaultFG;
598 break; 598 break;
599 case 49: 599 case 49:
600 term.c.attr.fg = DefaultBG; 600 term.c.attr.bg = DefaultBG;
601 break; 601 break;
602 default: 602 default:
603 if(BETWEEN(attr[i], 30, 37)) 603 if(BETWEEN(attr[i], 30, 37))
@@ -1032,9 +1032,9 @@ xclear(int x1, int y1, int x2, int y2) {
1032void 1032void
1033xhints(void) 1033xhints(void)
1034{ 1034{
1035 XClassHint chint = {TNAME, TNAME}; 1035 XClassHint class = {TNAME, TNAME};
1036 XWMHints wmhint = {.flags = InputHint, .input = 1}; 1036 XWMHints wm = {.flags = InputHint, .input = 1};
1037 XSizeHints shint = { 1037 XSizeHints size = {
1038 .flags = PSize | PResizeInc | PBaseSize, 1038 .flags = PSize | PResizeInc | PBaseSize,
1039 .height = xw.h, 1039 .height = xw.h,
1040 .width = xw.w, 1040 .width = xw.w,
@@ -1043,7 +1043,7 @@ xhints(void)
1043 .base_height = 2*BORDER, 1043 .base_height = 2*BORDER,
1044 .base_width = 2*BORDER, 1044 .base_width = 2*BORDER,
1045 }; 1045 };
1046 XSetWMProperties(xw.dis, xw.win, NULL, NULL, NULL, 0, &shint, &wmhint, &chint); 1046 XSetWMProperties(xw.dis, xw.win, NULL, NULL, NULL, 0, &size, &wm, &class);
1047} 1047}
1048 1048
1049void 1049void