[mq]: gethostbyname

This commit is contained in:
Kris Maglione 2010-10-07 16:31:38 -04:00
parent 83e5716fc8
commit 8ca9f3ca3a

View File

@ -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))