[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting information from X11 windows (which window is active / has f
burton . samogradNO
Re: Getting information from X11 windows (which window is active / has focus)
Fri, 29 Feb 2008 05:26:35 -0600
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
> Since the concept of visibility is not simple I am trying to go by
> simple criteria like finding out which window is "active" or has
> focus, and have found that querying the root window with "xprop" in
> the command line gives me a '_NET_ACTIVE_WINDOW' atom that is what I
> Is there any way to get this information using elisp? I have tried x-
> window-property - which doesn't seem to be used many times from the
> results I got from my google searches - but it requires a "frame"
> argument, and I'm at a loss on how do I get a frame variable to refer
> to a non-Emacs window... all the frame commands work with Emacs
> frames, and the window with focus could perfectly and most likely be a
> non-Emacs window...
There might be some good examples of X/elisp integration in the code
for the XEmacs Window Manager: http://www.xwem.org/ . It might not
solve your problem but it could help with some examples...