Hi,
So I'm wondering how do I get the window id of the toplevel window? Does
anyone know of a command or existing code that does this?
Thanks
Sheldon.
On March 25, 2004 1:51 pm, Rick Beldin wrote:
Perhaps some thought should be given to modify Xlib in a manner similar
to the way Xt is
On Sun, 28 Mar 2004 15:17:10 -0500 Sheldon Lee-Wen [EMAIL PROTECTED] babbled:
(B
(B Hi,
(B
(B So I'm wondering how do I get the window id of the toplevel window? Does
(B anyone know of a command or existing code that does this?
(B
(Bstart from root - work your way down the window tree
Hi,
_NET_WM_PID is a VOLUNTARY property set by some apps if they want to.
not all x apps will set this - so windows wont necessarily have this
property. see my LD_PRELOAD hack for forcing a process id property to
be set on ALL toplevel windows of apps run under the preload
Yes now I
Perhaps some thought should be given to modify Xlib in a manner similar
to the way Xt is modified with the XtDebug resource. It sets the
_MIT_OBJ_CLASS property on the window with the widget instance name and
the application class name.This is happening in Intrinsic.c in
RealizeWidget().
On Wed, 24 Mar 2004 00:52:28 -0800 (PST) dave giffin [EMAIL PROTECTED]
(Bbabbled:
(B
(B/lurk
(B
(Bmuch much much cleaner:
(Bcompile the attached 2 files into a .so shared library and use it as an
(BLD_PRELOAD when running ALL x applications (or make appropriate changes to Xlib
(Bitself).
Wed, Mar 24, 2004 at 12:52:28AM -0800, dave giffin escribió:
I need to be able to tell which process a given window
was created by. (Window ID=Process ID)
Apparently, X servers don't know which process a
client is, they just get a socket (b/c of X's network
transparency).
If you are
Wed, Mar 24, 2004 at 05:16:59PM +0100, Marcus Schaefer escribió:
I tried your example because I don't know the _NET_WM_PID property
and was interested in it. Unfortunately the call to XGetWindowProperty()
never filled the prop data. Your code is checking against the return
code of
Hi,
I tried your example because I don't know the _NET_WM_PID property
and was interested in it. Unfortunately the call to XGetWindowProperty()
never filled the prop data. Your code is checking against the return
code of XGetWindowProperty() which is fine but prop equals to (nil) in
all my
Fernando Herrera [EMAIL PROTECTED] writes:
Wed, Mar 24, 2004 at 12:52:28AM -0800, dave giffin escribió:
I need to be able to tell which process a given window
was created by. (Window ID=Process ID)
Apparently, X servers don't know which process a
client is, they just get a socket (b/c of X's
On Wed, 2004-03-24 at 03:52, dave giffin wrote:
I need to be able to tell which process a given window
was created by. (Window ID=Process ID)
On the server side, in os/access.c, is a function LocalClientCred() that
you can use to get the UID and GID of a local client. This function
could be
On Wed, 24 Mar 2004, [iso-8859-1] Mns Rullgrd wrote:
Fernando Herrera [EMAIL PROTECTED] writes:
If you are running a window manager setting the _NET_WM_PID
property correctly (metacity does it, dunno about others) you can do the
mapping easily.
How does it handle windows owned by
On Wed, 24 Mar 2004 18:13:58 +0100 Marcus Schaefer [EMAIL PROTECTED] babbled:
(B
(B Hi,
(B
(B I tried your example because I don't know the _NET_WM_PID property
(B and was interested in it. Unfortunately the call to XGetWindowProperty()
(B never filled the prop data. Your code is
12 matches
Mail list logo