On Wednesday 18 February 2004 10:44 am, Andreas Happe wrote:
> Tuomo Valkonen <[EMAIL PROTECTED]> [040218 11:34]:
> >On Wed, Feb 18, 2004 at 11:07:36AM +0100, Andreas Happe wrote:
> >> Just a quick question: would it be possible..
> >
> >Where do I get the process for the window?
>
> Is there no way to gain that information from X? There must exist some
> mapping from windowid to corresponding process.

Not really. Only the X server knows which socket connection corresponds to 
each window id, and as far as I know, it isn't telling... and even with the 
socket id, you'd end up having to rummage around in /proc and with lsof to 
get anything useful. And, of course, it wouldn't work across the network.

(Remember that as far as the X server is concerned, everything happens across 
anonymous network connections. It neither knows nor cares about processes.)

Hmm.

Does X support dynamic subscreens? I mean, can you mark an area of the screen 
as being display :0.44 or something like that? Then you could make each frame 
its own subscreen, with its own virtual X server...

-- 
+- David Given --McQ-+ 
|  [EMAIL PROTECTED]    | ACRONYM: A Contrived Reduction of Nomenclature
| ([EMAIL PROTECTED]) | Yielding Mnemonics
+- www.cowlark.com --+ 

Reply via email to