emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] frame.c: focus hooks


From: Stefan Monnier
Subject: Re: [PATCH] frame.c: focus hooks
Date: Mon, 18 Nov 2013 19:19:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Unfortunately, no.  The "focus in" and "focus out" events in Emacs fire
> per frame.  So alt-tabbing between Emacs frames will trigger a focus loss
> event for the origin frame and focus gain for the destination frame

Indeed, that's a problem in the current implementation, but that's not
the fault of your patch (your patch only makes the existing `focus-in'
and `focus-out' special events available via hooks, which is indeed more
convenient).

> It's not clear to me that X itself even *has* a concept of "active
> application" distinct from "frame that has input focus".

That's right: X11 has no such concept, AFAIK.  So we can't avoid
receiving a FocusOut/FocusIn pair of X11 events.  Hopefully, someone
will figure out how to cancel out such pairs in the C code so they don't
result in a `focus-in' and `focus-out' pair of Lisp-level events.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]