Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Getting window id for certain process id (for sharing the application)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
selva  
View profile  
 More options Dec 18 2007, 4:53 am
Newsgroups: comp.windows.x.apps
From: selva <selvagane...@gmail.com>
Date: Tue, 18 Dec 2007 01:53:46 -0800 (PST)
Local: Tues, Dec 18 2007 4:53 am
Subject: Getting window id for certain process id (for sharing the application)
Hi all,

My question is very very old. Lot of people may know answer for this.
Still i could find anything useful for my problem.

These are the questions asked by many people but i couldn't find
anything useful in googling.

Is there a way to obtain a list of window-IDs that belong to a certain
process? (ie retrieving window IDs/pointers/whatever by PID numbers).

Can I know in any way to obtain the window id of the top-level window
of a running X-application based on its process id.?

Objective:
        To Collect all the window id's for certain process to share those
windows across network. The user input will be PID. I need to find out
the windowid's related to that particular PID.

Please suggest me.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
noj...@gate.cpmet.ufpel.tche.br  
View profile  
 More options Dec 26 2007, 9:38 pm
Newsgroups: comp.windows.x.apps
From: noj...@gate.cpmet.ufpel.tche.br
Date: Wed, 26 Dec 2007 18:38:13 -0800 (PST)
Local: Wed, Dec 26 2007 9:38 pm
Subject: Re: Getting window id for certain process id (for sharing the application)
On 18 dez, 06:53, selva <selvagane...@gmail.com> wrote:

You may attempt to combine xlsclients and xprop to query the value of
the _NET_WM_PID property of each top-level window. That could be made
either by means of a shell/perl script or even writing your own
program. You can get the source code of xlsclients and xprop here:

    http://webcvs.freedesktop.org/xorg/xc/programs/xlsclients/xlsclients.c

    http://webcvs.freedesktop.org/xorg/xc/programs/xprop/xprop.c

Be warned, however, that not all clients will set the _NET_WM_PID
property.

---
Casantos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »