Process ID of Xserver
Process ID of Xserver
- Subject: Process ID of Xserver
- From: robert delius royar <email@hidden>
- Date: Fri, 1 Oct 2004 11:17:22 -0400 (EDT)
- Organization: An Apple OS X end user
- Priority: NEW
Is there a reliable way to get the PID of the Xserver which owns the root
window? Either a shell method or one which runs within a child process
would be OK. I know I can get the parent's PID in a program, but I don't
think I can be sure that that will always be the server. For example the
parent might be an XTerm.
With the PID, I can get the server app's serial number which I can then use
to talk to some of the event manager routines.
--
Dr. Robert Delius Royar Associate Professor of English
Morehead State University Morehead, Kentucky
That was the main thing I learned in all the science classes I took in
high school. If you give the principal a cracker soaked in liquid
nitrogen, fog will come out of his nose!
-Joe Manfre, in ARK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden