Re: [g-a-devel] Which window is on top? (Alex)



Hi, Sam
* SPI_STATE_ACTIVE: Indicates a window is currently the active window
Is this what you want? 

Regards,
Alex

-----邮件原件-----
发件人: gnome-accessibility-devel-bounces gnome org [mailto:gnome-accessibility-devel-bounces gnome org] 代表 gnome-accessibility-devel-request gnome org
发送时间: 2009年1月3日 20:00
收件人: gnome-accessibility-devel gnome org
主题: Gnome-accessibility-devel Digest, Vol 56, Issue 3

Send Gnome-accessibility-devel mailing list submissions to
	gnome-accessibility-devel gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
or, via email, send a message with subject or body 'help' to
	gnome-accessibility-devel-request gnome org

You can reach the person managing the list at
	gnome-accessibility-devel-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gnome-accessibility-devel digest..."


Today's Topics:

   1. Re:  Which window is on top? (Quiring, Sam)
   2. Re:  Which window is on top? (David Bolter)
   3. Re:  Which window is on top? (Steve Lee)
   4. Re:  Which window is on top? (Samuel Thibault)
   5. Re:  Which window is on top? (Quiring, Sam)


----------------------------------------------------------------------

Message: 1
Date: Fri, 2 Jan 2009 10:25:57 -0800
From: "Quiring, Sam" <Sam Quiring windriver com>
Subject: Re: [g-a-devel] Which window is on top?
To: "Steve Lee" <steve fullmeasure co uk>
Cc: gnome-accessibility-devel gnome org
Message-ID:
	<F25AAC0BD4AFCB4EBBA2F22FC65C07C801594995 ala-mail02 corp ad wrs com>
Content-Type: text/plain;	charset="us-ascii"

Steve, thanks for your reply.

I called gtk_init(null, null) and then tried using
gdk_display_get_window_at_pointer() and gdk_window_at_pointer(),
both returned null, which I'm interpretting as "that window
belongs to a different application -- you do not have access".

I decided to drop down to XWindows.  I have been able to find the
XWindow under the mouse and match its geometry (x, y, width, height)
with the Accessible *window obtained from ap-spi, so this might work.
Of course if there happened to be multiple identical windows at the
same spot, I would not be able to distinguish them.

This brings up two questions:

1. Is there a way to map from an at-spi Accessible *value to its
   associated XWindow window?
2. Is there a better alternative than XWindows for doing this?

Thanks.

-Sam

-----Original Message-----
From: Steve Lee [mailto:steve fullmeasure co uk] 
Sent: Friday, January 02, 2009 1:52 AM
To: Quiring, Sam
Cc: gnome-accessibility-devel gnome org
Subject: Re: [g-a-devel] Which window is on top?

2008/12/31 Quiring, Sam <Sam Quiring windriver com>:
> I cannot find a way to figure out what window is on top nor the zorder

> relationship of the windows.

Sam, this is something where you may need to look outside the a11y API.
e.g the windows manager

Happy new year
--
Steve Lee
Open Source Assistive Technology Software and Accessibility
fullmeasure.co.uk


------------------------------

Message: 2
Date: Fri, 02 Jan 2009 13:49:42 -0500
From: David Bolter <dtb gnome org>
Subject: Re: [g-a-devel] Which window is on top?
To: "Quiring, Sam" <Sam Quiring windriver com>
Cc: gnome-accessibility-devel gnome org
Message-ID: <495E61C6 7070908 gnome org>
Content-Type: text/plain; charset=ISO-8859-1

Hi Sam (and hi Steve)

You might find libwnck useful:

http://library.gnome.org/devel/libwnck/stable/WnckWindow.html#wnck-window-is-above
(and wnck_window_is_below)

Note you could use libwnck API... or find out how it is implemented
under the hood :)

cheers,
David

Quiring, Sam wrote:
> Steve, thanks for your reply.
>
> I called gtk_init(null, null) and then tried using
> gdk_display_get_window_at_pointer() and gdk_window_at_pointer(),
> both returned null, which I'm interpretting as "that window
> belongs to a different application -- you do not have access".
>
> I decided to drop down to XWindows.  I have been able to find the
> XWindow under the mouse and match its geometry (x, y, width, height)
> with the Accessible *window obtained from ap-spi, so this might work.
> Of course if there happened to be multiple identical windows at the
> same spot, I would not be able to distinguish them.
>
> This brings up two questions:
>
> 1. Is there a way to map from an at-spi Accessible *value to its
>    associated XWindow window?
> 2. Is there a better alternative than XWindows for doing this?
>
> Thanks.
>
> -Sam
>
> -----Original Message-----
> From: Steve Lee [mailto:steve fullmeasure co uk] 
> Sent: Friday, January 02, 2009 1:52 AM
> To: Quiring, Sam
> Cc: gnome-accessibility-devel gnome org
> Subject: Re: [g-a-devel] Which window is on top?
>
> 2008/12/31 Quiring, Sam <Sam Quiring windriver com>:
>   
>> I cannot find a way to figure out what window is on top nor the zorder
>>     
>
>   
>> relationship of the windows.
>>     
>
> Sam, this is something where you may need to look outside the a11y API.
> e.g the windows manager
>
> Happy new year
> --
> Steve Lee
> Open Source Assistive Technology Software and Accessibility
> fullmeasure.co.uk
> _______________________________________________
> Gnome-accessibility-devel mailing list
> Gnome-accessibility-devel gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
>   



------------------------------

Message: 3
Date: Fri, 2 Jan 2009 19:22:45 +0000
From: "Steve Lee" <steve fullmeasure co uk>
Subject: Re: [g-a-devel] Which window is on top?
To: "David Bolter" <dtb gnome org>
Cc: gnome-accessibility-devel gnome org, "Quiring,	Sam"
	<Sam Quiring windriver com>
Message-ID:
	<b30ac56c0901021122y64837762of0ceac7fcb2d06a5 mail gmail com>
Content-Type: text/plain; charset=ISO-8859-1

Thanks David. I knew there was a library we used in Python for
accessing WM features that had a strange name. Yep, that's the one.

Steve

2009/1/2 David Bolter <dtb gnome org>:
> Hi Sam (and hi Steve)
>
> You might find libwnck useful:
>
> http://library.gnome.org/devel/libwnck/stable/WnckWindow.html#wnck-window-is-above
> (and wnck_window_is_below)
>
> Note you could use libwnck API... or find out how it is implemented
> under the hood :)
>
> cheers,
> David
>
> Quiring, Sam wrote:
>> Steve, thanks for your reply.
>>
>> I called gtk_init(null, null) and then tried using
>> gdk_display_get_window_at_pointer() and gdk_window_at_pointer(),
>> both returned null, which I'm interpretting as "that window
>> belongs to a different application -- you do not have access".
>>
>> I decided to drop down to XWindows.  I have been able to find the
>> XWindow under the mouse and match its geometry (x, y, width, height)
>> with the Accessible *window obtained from ap-spi, so this might work.
>> Of course if there happened to be multiple identical windows at the
>> same spot, I would not be able to distinguish them.
>>
>> This brings up two questions:
>>
>> 1. Is there a way to map from an at-spi Accessible *value to its
>>    associated XWindow window?
>> 2. Is there a better alternative than XWindows for doing this?
>>
>> Thanks.
>>
>> -Sam
>>
>> -----Original Message-----
>> From: Steve Lee [mailto:steve fullmeasure co uk]
>> Sent: Friday, January 02, 2009 1:52 AM
>> To: Quiring, Sam
>> Cc: gnome-accessibility-devel gnome org
>> Subject: Re: [g-a-devel] Which window is on top?
>>
>> 2008/12/31 Quiring, Sam <Sam Quiring windriver com>:
>>
>>> I cannot find a way to figure out what window is on top nor the zorder
>>>
>>
>>
>>> relationship of the windows.
>>>
>>
>> Sam, this is something where you may need to look outside the a11y API.
>> e.g the windows manager
>>
>> Happy new year
>> --
>> Steve Lee
>> Open Source Assistive Technology Software and Accessibility
>> fullmeasure.co.uk
>> _______________________________________________
>> Gnome-accessibility-devel mailing list
>> Gnome-accessibility-devel gnome org
>> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
>>
>
>



-- 
Steve Lee
Open Source Assistive Technology Software and Accessibility
fullmeasure.co.uk


------------------------------

Message: 4
Date: Fri, 2 Jan 2009 21:25:29 +0100
From: Samuel Thibault <samuel thibault ens-lyon org>
Subject: Re: [g-a-devel] Which window is on top?
To: "Quiring, Sam" <Sam Quiring windriver com>
Cc: gnome-accessibility-devel gnome org
Message-ID: <20090102202529 GA26275 const>
Content-Type: text/plain; charset=iso-8859-1

Hello,
Quiring, Sam, le Fri 02 Jan 2009 10:25:57 -0800, a ?crit :
> 1. Is there a way to map from an at-spi Accessible *value to its
>    associated XWindow window?

I precisely asked for an API to get this information some time ago, but
it was rejected because it was said that AT-SPI engines shouldn't assume
that the desktop is an X-Window desktop.  So there is currently no way
except the kind of tinkering you have figured out.

Samuel


------------------------------

Message: 5
Date: Fri, 2 Jan 2009 13:24:09 -0800
From: "Quiring, Sam" <Sam Quiring windriver com>
Subject: Re: [g-a-devel] Which window is on top?
To: "Samuel Thibault" <samuel thibault ens-lyon org>
Cc: gnome-accessibility-devel gnome org
Message-ID:
	<F25AAC0BD4AFCB4EBBA2F22FC65C07C8015949C4 ala-mail02 corp ad wrs com>
Content-Type: text/plain;	charset="iso-8859-1"

Samuel,

= it was rejected because it was said that AT-SPI engines shouldn't assume that the desktop is an X-Window desktop.

I'm ok with the rejection as long as I can use AT-SPI for everything.  But now that I have to use the underlying window manager to figure out which window is on top, I'm with you: it would be nice to be able to map AT-SPI windows to window manager windows, whether it's X or WIN32 or whatever.

-Sam

-----Original Message-----
From: Samuel Thibault [mailto:samuel thibault ens-lyon org] 
Sent: Friday, January 02, 2009 12:25 PM
To: Quiring, Sam
Cc: Steve Lee; gnome-accessibility-devel gnome org
Subject: Re: [g-a-devel] Which window is on top?

Hello,
Quiring, Sam, le Fri 02 Jan 2009 10:25:57 -0800, a ?crit :
> 1. Is there a way to map from an at-spi Accessible *value to its
>    associated XWindow window?

I precisely asked for an API to get this information some time ago, but it was rejected because it was said that AT-SPI engines shouldn't assume that the desktop is an X-Window desktop.  So there is currently no way except the kind of tinkering you have figured out.

Samuel


------------------------------

_______________________________________________
Gnome-accessibility-devel mailing list
Gnome-accessibility-devel gnome org
http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel


End of Gnome-accessibility-devel Digest, Vol 56, Issue 3
********************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]