diff options
Diffstat (limited to 'st.c')
| -rwxr-xr-x | st.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -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) { | |||
| 1032 | void | 1032 | void |
| 1033 | xhints(void) | 1033 | xhints(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 | ||
| 1049 | void | 1049 | void |
