Re: X11 status Capture for an arbitary application
Why do you want to do this? Parts of it are unclear: what's a menu list, and what's the event queue status? On Fri, May 17, 2013 at 10:31 AM, Dibyayan Chakraborty dib.cool...@gmail.com wrote: Hi, I am currently challenged with the following problem.Any help would be appreciated. For some x11 application at some particular moment i would like to access all its component's status ( window positions , child windows ,menu lists , event queue status and everything else) . What are the functions that can be used for this purpose ? -- With Regards Dibyayan Chakraborty ___ xorg-de...@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Jasper ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 status Capture for an arbitary application
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. 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. 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? On Fri, May 17, 2013 at 11:53 AM, Dibyayan Chakraborty dib.cool...@gmail.com wrote: Ok. Thank you for the reply. Then is it possible to query the window specific attributes of an application from another program? And can you please elaborate this debugger or remote introspection ? On Fri, 2013-05-17 at 08:42 -0700, Alan Coopersmith wrote: On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. ___ xorg-de...@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Jasper ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 status Capture for an arbitary application
On Freitag, 17. Mai 2013 17:37:37 CEST, Dibyayan Chakraborty wrote: I would like to build an application which would monitor an arbitrary application and notify its total machine resource usage statistics. This has in general nothing to do with X11, but depends on the underlying system (on linux, check the /proc filesystem. Do *not* ask such things on lkm - they're gonna eat you) To monitor the resources an application holds via the X11 server (amount of allocated pixmaps etc.), check the sourcecode of xrestop. To get several attributes of a random Window (that is *not* the same as a process nor application) check http://tronche.com/gui/x/xlib/window-information/XGetWindowAttributes.html for the xlib API - there's corresponding xcb_get_window_attributes Cheers, Thomas ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
X11 status Capture for an arbitary application
Hi, I am currently challenged with the following problem.Any help would be appreciated. For some x11 application at some particular moment i would like to access all its component's status ( window positions , child windows ,menu lists , event queue status and everything else) . What are the functions that can be used for this purpose ? -- With Regards Dibyayan Chakraborty ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 status Capture for an arbitary application
On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
Re: X11 status Capture for an arbitary application
Ok. Thank you for the reply. Then is it possible to query the window specific attributes of an application from another program? And can you please elaborate this debugger or remote introspection ? On Fri, 2013-05-17 at 08:42 -0700, Alan Coopersmith wrote: On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. ___ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com
X11 status Capture for an arbitary application
Hi, I am currently challenged with the following problem.Any help would be appreciated. For some x11 application at some particular moment i would like to access all its component's status ( window positions , child windows ,menu lists , event queue status and everything else) . What are the functions that can be used for this purpose ? -- With Regards Dibyayan Chakraborty ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: X11 status Capture for an arbitary application
Why do you want to do this? Parts of it are unclear: what's a menu list, and what's the event queue status? On Fri, May 17, 2013 at 10:31 AM, Dibyayan Chakraborty dib.cool...@gmail.com wrote: Hi, I am currently challenged with the following problem.Any help would be appreciated. For some x11 application at some particular moment i would like to access all its component's status ( window positions , child windows ,menu lists , event queue status and everything else) . What are the functions that can be used for this purpose ? -- With Regards Dibyayan Chakraborty ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Jasper ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: X11 status Capture for an arbitary application
Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. I would like to build an application which would monitor an arbitrary application and notify its total machine resource usage statistics. On Fri, May 17, 2013 at 8:01 PM, Dibyayan Chakraborty dib.cool...@gmail.com wrote: Hi, I am currently challenged with the following problem.Any help would be appreciated. For some x11 application at some particular moment i would like to access all its component's status ( window positions , child windows ,menu lists , event queue status and everything else) . What are the functions that can be used for this purpose ? -- With Regards Dibyayan Chakraborty -- With Regards Dibyayan Chakraborty ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: X11 status Capture for an arbitary application
On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. -- -Alan Coopersmith- alan.coopersm...@oracle.com Oracle Solaris Engineering - http://blogs.oracle.com/alanc ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: X11 status Capture for an arbitary application
Ok. Thank you for the reply. Then is it possible to query the window specific attributes of an application from another program? And can you please elaborate this debugger or remote introspection ? On Fri, 2013-05-17 at 08:42 -0700, Alan Coopersmith wrote: On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
Re: X11 status Capture for an arbitary application
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. 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. 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? On Fri, May 17, 2013 at 11:53 AM, Dibyayan Chakraborty dib.cool...@gmail.com wrote: Ok. Thank you for the reply. Then is it possible to query the window specific attributes of an application from another program? And can you please elaborate this debugger or remote introspection ? On Fri, 2013-05-17 at 08:42 -0700, Alan Coopersmith wrote: On 05/17/13 08:37 AM, Dibyayan Chakraborty wrote: Hi, I think i should be more clear on the specific terms that i previously used. By menu list i meant to say the menus which are often present in the applications(e.g File, Edit, View, Insert) and by event queue i referred the event queue of the application where the key Events and Mouse Events are buffered prior to its processing. X11 has no concept of menus - those are implemented in toolkits (usually) or applications (in some rare cases). Similarly once the events are delivered to the client, you'd need some form of debugger or remote introspection to find out if the client has processed them or still has them in a queue to handle later - there is no X11 API to query event queue state from another program. ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel -- Jasper ___ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel