On Mon, Dec 8, 2008 at 10:55 PM, Glynn Clements <[EMAIL PROTECTED]> wrote: > > Ashi Krishnan wrote: >> But I want to manage all the windows of that application and *only* >> the windows of that application. And, as far as I'm aware, there's no >> reliable way of figuring out the pid of the process that owns a given >> window. Does _NET_WM_PID work reliably enough to be useful? > > If you don't actually need to know the PID, but just want to be able > to distinguish one client from another, you can identify the client > from the Window's XID, e.g. using XResQueryClients().
Oh, that's useful, thanks. (Unfortunately, I think I do need to filter by PID, since I'm going to launch some arbitrary app and then try to capture the windows it creates. But that's still useful.) ~ v _______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg