[hackers] [st] fixed background color bug (thx Devin J. Pohly). || Aurélien Aptel

From: <hg_AT_suckless.org>
Date: Thu, 8 Jul 2010 14:37:03 +0000 (UTC)

changeset: 82:3ebdb536b938
tag: tip
user: Aurélien Aptel <aurelien.aptel_AT_gmail.com>
date: Thu Jul 08 16:31:41 2010 +0200
files: st.c
description:
fixed background color bug (thx Devin J. Pohly).

diff -r d607b6da0927 -r 3ebdb536b938 st.c
--- a/st.c Thu Jun 03 23:14:37 2010 +0200
+++ b/st.c Thu Jul 08 16:31:41 2010 +0200
@@ -597,7 +597,7 @@
                         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 @@
                 .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
Received on Thu Jul 08 2010 - 16:37:03 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 08 2010 - 16:48:04 CEST