diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -296,6 +296,7 @@ static void xcopy(void); | |||
| 296 | static void xdrawcursor(void); | 296 | static void xdrawcursor(void); |
| 297 | static void xinit(void); | 297 | static void xinit(void); |
| 298 | static void xloadcols(void); | 298 | static void xloadcols(void); |
| 299 | static void xresettitle(void); | ||
| 299 | static void xseturgency(int); | 300 | static void xseturgency(int); |
| 300 | static void xsetsel(char*); | 301 | static void xsetsel(char*); |
| 301 | static void xresize(int, int); | 302 | static void xresize(int, int); |
| @@ -1684,6 +1685,7 @@ tputc(char *c) { | |||
| 1684 | case 'c': /* RIS -- Reset to inital state */ | 1685 | case 'c': /* RIS -- Reset to inital state */ |
| 1685 | treset(); | 1686 | treset(); |
| 1686 | term.esc = 0; | 1687 | term.esc = 0; |
| 1688 | xresettitle(); | ||
| 1687 | break; | 1689 | break; |
| 1688 | case '=': /* DECPAM -- Application keypad */ | 1690 | case '=': /* DECPAM -- Application keypad */ |
| 1689 | term.mode |= MODE_APPKEYPAD; | 1691 | term.mode |= MODE_APPKEYPAD; |
| @@ -2026,7 +2028,7 @@ xinit(void) { | |||
| 2026 | 2028 | ||
| 2027 | xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False); | 2029 | xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False); |
| 2028 | 2030 | ||
| 2029 | XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st"); | 2031 | xresettitle(); |
| 2030 | XMapWindow(xw.dpy, xw.win); | 2032 | XMapWindow(xw.dpy, xw.win); |
| 2031 | xhints(); | 2033 | xhints(); |
| 2032 | XSync(xw.dpy, 0); | 2034 | XSync(xw.dpy, 0); |
| @@ -2123,6 +2125,11 @@ xdrawcursor(void) { | |||
| 2123 | } | 2125 | } |
| 2124 | 2126 | ||
| 2125 | void | 2127 | void |
| 2128 | xresettitle(void) { | ||
| 2129 | XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st"); | ||
| 2130 | } | ||
| 2131 | |||
| 2132 | void | ||
| 2126 | redraw(void) { | 2133 | redraw(void) { |
| 2127 | struct timespec tv = {0, REDRAW_TIMEOUT * 1000}; | 2134 | struct timespec tv = {0, REDRAW_TIMEOUT * 1000}; |
| 2128 | tfulldirt(); | 2135 | tfulldirt(); |
