Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a graphics library under XWindows, using the Xlib API.

I am looking for a clean way to get the XID of the main Window of the running application. I'd need a solution that doesn't know about the Windows Manager in use (Qt, GTK, Motif...), and only does Xlib calls.

One possibility could be to lookup the window tree by process ID. Any cleaner/simpler suggestion?

(added tags)
Posted
Updated 22-Dec-11 3:56am
v4
Comments
Albert Holguin 22-Dec-11 11:03am    
Not sure if there's a simple way of doing that, each framework has its own way of searching for windows.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900