#84 Support EWMH _NET_WM_PID on X11

open
nobody
None
5
2013-09-03
2013-08-09
James DeLisle
No

Attaching a patch which adds support for the EWMH _NET_WM_PID on X11. This feature is critical to our environment. The patch has been tested on Debian Wheezy and is working properly. It should be at least portable to BSD.

It would be great if the maintainers could take a look at this and perhaps incorporate similar functionality into a future release.

Thank you.

1 Attachments

Discussion

  • Nigel Stewart
    Nigel Stewart
    2013-08-28

    So what does EWMH _NET_WM_PID mean? In a nutshell?

     
  • EWMH (Extended Window Manager Hints) is a set of conventions (basically extending the original ICCCM, or Inter-Client Communication Conventions Manual) on how to make X clients play along nicely especially assisting the window manager (which is just another X client) do its job.

    What this particular protocol (_NET_WM_PID) does, is add a property to the client's window containing the process id of the client's process. The rationale is that if the window manager detects that a particular client does not respond, it can use the pid to kill it.

    It goes side by side with an old ICCCM protocol called WM_CLIENT_MACHINE, which provides the hostname of the client's process as well. How exactly would the window manager kill a remote client, knowing its hostname/pid combination is not entirely clear to me :)

    ANYWAY... I applied the patch. It's in SVN revision 1626.

     
  • James DeLisle
    James DeLisle
    2013-09-03

    Thanks very much for reviewing this and adding this to the SVN repo! This saves me a great deal of headache moving forward.

    Cheers.