Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get the ID of a window according to some particular condition?

Status
Not open for further replies.

julianLiuRsch

Programmer
Oct 4, 2008
11
Hello,

I know that in X window programming, if I know the ID of a particular window, I can manage it. For example, I can resize that window by using
---
XResizeWindow(display, win, 200, 300);
===

So my question is, how to get the window ID?

Particularly, when I know the PID of a program, how can I get the X window ID of the window in which it is running?

thanks in adv!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top