[compiz] Getting the window having the focus

Bill Cox waywardgeek at gmail.com
Wed Apr 28 10:01:39 PDT 2010


A related issue in Compiz is knowing where the cursor is within an
application window.  When using the enhanced zoom desktop, if you zoom
in, and then press Alt+Tab, the newly focused application scrolls into
view.  However, it just shows the middle of the window.  In a gnome
terminal, for example, the cursor is usually somewhere on the left
side.

So, if you find the answer, please post it back here.  I'd be very
interested in finding a way to start following the cursor.

Bill

On Wed, Apr 28, 2010 at 11:51 AM, Christian Mertes
<cmertes at techfak.uni-bielefeld.de> wrote:
> Greetings!
>
> I'm currently gathering information that helps software in assessing the
> user's context. One very important such data would be the application
> that the user is currently working with which mostly is roughly
> equivalent to the name of the window that has the focus. Unfortunately
> I'm at a loss even about which API to ask for this information. As
> personally I am using compiz as a window manager, I'd be glad if anybody
> here could tell me about a way to get this information out of compiz,
> preferably without modifications to its code. If alternatively someone
> knows about ways to do this at a higher level (freedesktop, X, ...), I'd
> be happy about any hint.
>
> Many thanks in advance and best regards,
>
> Christian Mertes
>
>
> _______________________________________________
> compiz mailing list
> compiz at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/compiz
>
>


More information about the compiz mailing list