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



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


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