wmii

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

commit 8ca9f3ca3ad36073958c39721a168d1b633081e9
parent 83e5716fc8202e76936b4e655a7905de40133ccc
Author: Kris Maglione <kris@suckless.org>
Date:   Thu,  7 Oct 2010 16:31:38 -0400

[mq]: gethostbyname

Diffstat:
cmd/wmii/client.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/cmd/wmii/client.c b/cmd/wmii/client.c @@ -120,6 +120,7 @@ client_create(XWindow w, XWindowAttributes *wa) { client_prop(c, xatom("WM_NAME")); client_prop(c, xatom("_MOTIF_WM_HINTS")); + gethostname(hostname, sizeof(hostname) - 1); if(getprop_textlist(&c->w, "WM_CLIENT_MACHINE", &host) && getprop_ulong(&c->w, Net("WM_PID"), "CARDINAL", 0, &pid, 1) && !strcmp(hostname, *host))