wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit da01e0d0d11d871bada841cd4d76d0bf78c3d94b
parent d5ce9d797c1fd5076b0d73735fe7d8c2fd556ad2
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Mon, 24 Apr 2006 00:27:38 +0200

once giving Xutf8 a try again 


Diffstat:
cmd/wm/wm.c | 6++++++
cmd/wm/wm.h | 8++++++++
2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c @@ -121,6 +121,12 @@ init_atoms() wm_atom[WMState] = XInternAtom(dpy, "WM_STATE", False); wm_atom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); wm_atom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); + + net_atom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); + net_atom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); + + XChangeProperty(dpy, root, net_atom[NetSupported], + XA_ATOM, 32, PropModeReplace, (unsigned char *)net_atom, NetLast); } static void diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h @@ -18,6 +18,13 @@ enum { WMLast }; +/* NET atoms */ +enum { + NetSupported, + NetWMName, + NetLast +}; + /* Column modes */ enum { Coldefault, @@ -182,6 +189,7 @@ XRectangle brect; Qid root_qid; Default def; Atom wm_atom[WMLast]; +Atom net_atom[NetLast]; Cursor cursor[CurLast]; unsigned int valid_mask; unsigned int num_lock_mask;