<div dir="ltr"><div><div>The window-specific attributes? You can look at the X window properties, using a tool like xprop, but that may not be what you want.<br><br></div>Events are delivered over a socket. It's up to the client to determine what to do with the data retrieved from it. The client may leave unhandled events as raw data waiting in the socket's buffer, or it may parse them and put them on its own event queue. Knowing this requires knowing how the internal application was developed, which you have no knowledge of without the application's source code.<br>
<br></div>I'm not sure how knowing "menu lists" (which, as Alan said, has no native support in the X protocol) would help you build a resource monitor. What's the use case you have?<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, May 17, 2013 at 11:53 AM, Dibyayan Chakraborty <span dir="ltr"><<a href="mailto:dib.coolguy@gmail.com" target="_blank">dib.coolguy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ok. Thank you for the reply.<br>
Then is it possible to query the window specific attributes of an<br>
application from another program?<br>
And can you please elaborate this "debugger or remote introspection" ?<br>
<div class="im HOEnZb"><br>
On Fri, 2013-05-17 at 08:42 -0700, Alan Coopersmith wrote:<br>
> On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote:<br>
> > Hi,<br>
> > I think i should be more clear on the specific terms that i previously used.<br>
> > By "menu list" i meant to say the menus which are often present in the<br>
> > applications(e.g File, Edit, View, Insert) and by "event queue" i referred the<br>
> > event queue of the application where the key Events and Mouse Events are<br>
> > buffered prior to its processing.<br>
><br>
> X11 has no concept of menus - those are implemented in toolkits (usually) or<br>
> applications (in some rare cases). Similarly once the events are delivered<br>
> to the client, you'd need some form of debugger or remote introspection to<br>
> find out if the client has processed them or still has them in a queue to<br>
> handle later - there is no X11 API to query event queue state from another<br>
> program.<br>
><br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>