GLX in Xephyr --or-- is there some other way to catch a desktop in a texture?

Glynn Clements glynn at
Mon Dec 8 21:55:32 PST 2008

Ashi Krishnan wrote:

> >> This is fine if (1)
> >> the app creates only one window, and (2) is quite cooperative with
> >> respect to where it draws that window -- like, say, the xscreensaver
> >> hacks.
> >
> > Maybe I'm dense, but I'm not seeing how that's a problem. Since you're
> > acting as the window manager (you are 'managing' that window), you can
> > manage all the windows of the application. You can decorate and compose
> > them however you see fit.
> 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().

Glynn Clements <glynn at>

More information about the xorg mailing list