aboutsummarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos J. Torres2013-11-22 10:45:48 -0500
committerRoberto E. Vargas Caballero2013-11-23 10:54:57 +0100
commit43534688ccf4086f2c7b2c6c338158ab7de96e56 (patch)
tree2c30363df24a22b57ce2eac621e42ea43c8f3287
parent03f263903529e9f0db05ccb2ebfec3bfb145b312 (diff)
downloadaur-43534688ccf4086f2c7b2c6c338158ab7de96e56.tar.gz
add _NET_WM_NAME
-rw-r--r--st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/st.c b/st.c
index fda70442e4b1..ee8dc94082e6 100644
--- a/st.c
+++ b/st.c
@@ -239,7 +239,7 @@ typedef struct {
Colourmap cmap;
Window win;
Drawable buf;
- Atom xembed, wmdeletewin;
+ Atom xembed, wmdeletewin, netwmname;
XIM xim;
XIC xic;
Draw draw;
@@ -3023,6 +3023,7 @@ xinit(void) {
xw.xembed = XInternAtom(xw.dpy, "_XEMBED", False);
xw.wmdeletewin = XInternAtom(xw.dpy, "WM_DELETE_WINDOW", False);
+ xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False);
XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1);
xresettitle();
@@ -3355,6 +3356,7 @@ xsettitle(char *p) {
Xutf8TextListToTextProperty(xw.dpy, &p, 1, XUTF8StringStyle,
&prop);
XSetWMName(xw.dpy, xw.win, &prop);
+ XSetTextProperty(xw.dpy, xw.win, &prop, xw.netwmname);
XFree(prop.value);
}