Is there any way of determining the process id of the application owning the display connection which created a particular window? XQueryTree and XGetWindowAttributes do not appear to return this. (Neither does xwininfo). Thanks, John