diff options
author | Carlos J. Torres | 2013-11-22 10:45:48 -0500 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2013-11-23 10:54:57 +0100 |
commit | 4435e0ee6791136e641d58ce6cf00f8665fe3065 (patch) | |
tree | 57158f1624abe8c0dec91320a586058cb7ef7973 | |
parent | 7263820759aa914b27ab3097613bdf22432ed736 (diff) | |
download | st-4435e0ee6791136e641d58ce6cf00f8665fe3065.tar.gz st-4435e0ee6791136e641d58ce6cf00f8665fe3065.tar.xz st-4435e0ee6791136e641d58ce6cf00f8665fe3065.zip |
add _NET_WM_NAME
-rw-r--r-- | st.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |