mirror of
https://github.com/0intro/wmii
synced 2024-11-21 21:31:33 +03:00
[mq]: gethostbyname
This commit is contained in:
parent
83e5716fc8
commit
8ca9f3ca3a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user