[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: |
Dan Espen |
Subject: |
Re: How to determine (from Elisp) whether the Emacs frame has focus? |
Date: |
Mon, 16 Nov 2015 01:53:11 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Marcin Borkowski <mbork@mbork.pl> writes:
> Hi all,
>
> I'd like to know whether the selected Emacs frame has focus. Currently,
> I'm using an xdotool/xprop combo (I'm on GNU/Linux), but I'd like to
> know whether there is a better way. I know about focus-in-hook and
> focus-out-hook, and I could make them set/unset some global variable,
> but this looks hackish.
>
> Any ideas?
Since there doesn't seem to be an existing Emacs global variable
creating your own using those hooks isn't all that hackish.
Go for it.
--
Dan Espen
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Michael Heerdegen, 2015/11/14
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Marcin Borkowski, 2015/11/14
Re: How to determine (from Elisp) whether the Emacs frame has focus?,
Dan Espen <=