change title
This commit is contained in:
parent
43ef5a7f37
commit
2f1c0e5105
1
config.h
1
config.h
|
@ -1,5 +1,4 @@
|
|||
/* See LICENSE file for copyright and license details. */
|
||||
static char *opt_title = "Terminal";
|
||||
/* Spare fonts */
|
||||
static char *font2[] = {
|
||||
"FiraCode Nerd Font:style=Light:pixelsize=8:antialias=true:autohint=true",//english
|
||||
|
|
5
st.c
5
st.c
|
@ -1,4 +1,5 @@
|
|||
/* See LICENSE for license details. */
|
||||
static char *opt_title = "Not a terminal";
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -1948,7 +1949,7 @@ strhandle(void)
|
|||
case 1:
|
||||
case 2:
|
||||
if (narg > 1)
|
||||
xsettitle(strescseq.args[1]);
|
||||
xsettitle(opt_title);
|
||||
return;
|
||||
case 52:
|
||||
if (narg > 2 && allowwindowops) {
|
||||
|
@ -1984,7 +1985,7 @@ strhandle(void)
|
|||
}
|
||||
break;
|
||||
case 'k': /* old title set compatibility */
|
||||
xsettitle(strescseq.args[0]);
|
||||
xsettitle(opt_title);
|
||||
return;
|
||||
case 'P': /* DCS -- Device Control String */
|
||||
case '_': /* APC -- Application Program Command */
|
||||
|
|
5
x.c
5
x.c
|
@ -1,4 +1,5 @@
|
|||
/* See LICENSE for license details. */
|
||||
static char *opt_title = "NULL";
|
||||
#include <errno.h>
|
||||
#include <math.h>
|
||||
#include <limits.h>
|
||||
|
@ -256,7 +257,7 @@ static char *opt_embed = NULL;
|
|||
static char *opt_font = NULL;
|
||||
static char *opt_io = NULL;
|
||||
static char *opt_line = NULL;
|
||||
static char *opt_name = NULL;
|
||||
static char *opt_name = "l";
|
||||
static int invertcolors = 0;
|
||||
static int focused = 0;
|
||||
static int oldbutton = 3; /* button event on startup: 3 = release */
|
||||
|
@ -1774,7 +1775,7 @@ void
|
|||
xsettitle(char *p)
|
||||
{
|
||||
XTextProperty prop;
|
||||
DEFAULT(p, opt_title);
|
||||
DEFAULT(opt_title, opt_title);
|
||||
|
||||
Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
|
||||
&prop);
|
||||
|
|
Loading…
Reference in New Issue