mirror of
https://github.com/pikami/st.git
synced 2024-11-25 21:35:42 +00:00
Reset window title on terminal reset too.
This commit is contained in:
parent
977c5d9089
commit
fe2ba95b3d
9
st.c
9
st.c
@ -296,6 +296,7 @@ static void xcopy(void);
|
|||||||
static void xdrawcursor(void);
|
static void xdrawcursor(void);
|
||||||
static void xinit(void);
|
static void xinit(void);
|
||||||
static void xloadcols(void);
|
static void xloadcols(void);
|
||||||
|
static void xresettitle(void);
|
||||||
static void xseturgency(int);
|
static void xseturgency(int);
|
||||||
static void xsetsel(char*);
|
static void xsetsel(char*);
|
||||||
static void xresize(int, int);
|
static void xresize(int, int);
|
||||||
@ -1684,6 +1685,7 @@ tputc(char *c) {
|
|||||||
case 'c': /* RIS -- Reset to inital state */
|
case 'c': /* RIS -- Reset to inital state */
|
||||||
treset();
|
treset();
|
||||||
term.esc = 0;
|
term.esc = 0;
|
||||||
|
xresettitle();
|
||||||
break;
|
break;
|
||||||
case '=': /* DECPAM -- Application keypad */
|
case '=': /* DECPAM -- Application keypad */
|
||||||
term.mode |= MODE_APPKEYPAD;
|
term.mode |= MODE_APPKEYPAD;
|
||||||
@ -2026,7 +2028,7 @@ xinit(void) {
|
|||||||
|
|
||||||
xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
|
xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
|
||||||
|
|
||||||
XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st");
|
xresettitle();
|
||||||
XMapWindow(xw.dpy, xw.win);
|
XMapWindow(xw.dpy, xw.win);
|
||||||
xhints();
|
xhints();
|
||||||
XSync(xw.dpy, 0);
|
XSync(xw.dpy, 0);
|
||||||
@ -2122,6 +2124,11 @@ xdrawcursor(void) {
|
|||||||
xcopy();
|
xcopy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
xresettitle(void) {
|
||||||
|
XStoreName(xw.dpy, xw.win, opt_title ? opt_title : "st");
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
redraw(void) {
|
redraw(void) {
|
||||||
struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
|
struct timespec tv = {0, REDRAW_TIMEOUT * 1000};
|
||||||
|
Loading…
Reference in New Issue
Block a user