help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to determine (from Elisp) whether the Emacs frame has focus?


From: Marcin Borkowski
Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus?
Date: Sat, 14 Nov 2015 09:42:09 +0100
User-agent: mu4e 0.9.15; emacs 25.0.50.1

On 2015-11-14, at 09:06, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Marcin Borkowski <mbork@mbork.pl>
>> Date: Fri, 13 Nov 2015 22:45:10 +0100
>> 
>> I'd like to know whether the selected Emacs frame has focus.
>
> I'm probably missing something very important, because I don't
> understand what you are looking for.  The selected frame by definition
> has focus, at least AFAIK.  What am I missing?

"Focus" in the window manager sense, not in Emacs sense.  I.e., I want
to determine whether it is Emacs which receives keystrokes, or some
other X application.

Hope that clarifies the question.

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

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