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 21:28:29 +0100
User-agent: mu4e 0.9.15; emacs 25.0.50.1

On 2015-11-14, at 11:45, tomas@tuxteam.de wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Sat, Nov 14, 2015 at 09:44:25AM +0100, Marcin Borkowski wrote:
>
> [...]
>
>> That I know, I did my homework.  Still, evaluating
>
> Sorry, I didn't want to imply otherwise -- I just misunderstood your
> problem.

No need to be sorry, it's fine.  I do not /always/ do my homework;-).

>> (progn (sit-for 3) (selected-frame))
>> 
>> and immediately going to, say, Evince, does not make Emacs say "nil", as
>> I (somehow) expected.
>
> Got it. Yes, it seems you'll have to hook on focus events, then.

Not necessarily - I can also ask xdotool for that info.

Best,

-- 
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]