Re: How do I get the window ID of the frontmost window in X11
Re: How do I get the window ID of the frontmost window in X11
- Subject: Re: How do I get the window ID of the frontmost window in X11
- From: Sean Ahern <email@hidden>
- Date: Mon, 14 Jul 2003 10:07:53 -0700
Sven Nueesch wrote:
> I need to do an automatic dump of the frontmost X window of commercial
> application to a printer. I thought about using xwd which has an option -id
> <Window-ID>. But how do I get the window id of the frontmost window without
> modifying the running applications? Is there a commandline tool to do this?
> Can anybody help me?
You want "xwininfo".
However, you don't have to specify the -id option to xwd. You can just type
"xwd > file" and xwd will have you choose the window with your cursor.
-Sean
__
email@hidden
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.