mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 19:26:22 +00:00
fixed background color bug (thx Devin J. Pohly).
This commit is contained in:
parent
2f96cfeada
commit
499c70cda0
1 changed files with 5 additions and 5 deletions
10
st.c
10
st.c
|
@ -597,7 +597,7 @@ tsetattr(int *attr, int l) {
|
||||||
term.c.attr.fg = DefaultFG;
|
term.c.attr.fg = DefaultFG;
|
||||||
break;
|
break;
|
||||||
case 49:
|
case 49:
|
||||||
term.c.attr.fg = DefaultBG;
|
term.c.attr.bg = DefaultBG;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if(BETWEEN(attr[i], 30, 37))
|
if(BETWEEN(attr[i], 30, 37))
|
||||||
|
@ -1032,9 +1032,9 @@ xclear(int x1, int y1, int x2, int y2) {
|
||||||
void
|
void
|
||||||
xhints(void)
|
xhints(void)
|
||||||
{
|
{
|
||||||
XClassHint chint = {TNAME, TNAME};
|
XClassHint class = {TNAME, TNAME};
|
||||||
XWMHints wmhint = {.flags = InputHint, .input = 1};
|
XWMHints wm = {.flags = InputHint, .input = 1};
|
||||||
XSizeHints shint = {
|
XSizeHints size = {
|
||||||
.flags = PSize | PResizeInc | PBaseSize,
|
.flags = PSize | PResizeInc | PBaseSize,
|
||||||
.height = xw.h,
|
.height = xw.h,
|
||||||
.width = xw.w,
|
.width = xw.w,
|
||||||
|
@ -1043,7 +1043,7 @@ xhints(void)
|
||||||
.base_height = 2*BORDER,
|
.base_height = 2*BORDER,
|
||||||
.base_width = 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
|
void
|
||||||
|
|
Loading…
Reference in a new issue