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 <[email protected]>: > 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:[email protected]] >> Sent: Friday, January 02, 2009 1:52 AM >> To: Quiring, Sam >> Cc: [email protected] >> Subject: Re: [g-a-devel] Which window is on top? >> >> 2008/12/31 Quiring, Sam <[email protected]>: >> >>> 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 >> [email protected] >> http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel >> > > -- Steve Lee Open Source Assistive Technology Software and Accessibility fullmeasure.co.uk _______________________________________________ Gnome-accessibility-devel mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
