window-pid

Name

window-pid -- Returns the process id of the process that created WIN.

Synopsis

(window-pid win)

Description

Returns the process id of the process that created WIN. Requires using the LD_PRELOAD environment variable for the started process: LD_PRELOAD=/path/to/scwm_set_pid_property.so Returns #f if the property does not exist on WIN (most likely because you did not use the LD_PRELOAD variable). See also window-client-machine-name to get the machine name on which the returned process id is valid, and window-other-id to get the string in environment variable SCWM_OTHER_ID.

Implementation Notes

Module: (app scwm xprop-extras)

Defined in scheme/xprop-extras.scm at line 96 (CVS log)