[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to determine (from Elisp) whether the Emacs frame has focus?
From: |
Marcin Borkowski |
Subject: |
How to determine (from Elisp) whether the Emacs frame has focus? |
Date: |
Fri, 13 Nov 2015 22:45:10 +0100 |
User-agent: |
mu4e 0.9.15; emacs 25.0.50.1 |
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?
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
- How to determine (from Elisp) whether the Emacs frame has focus?,
Marcin Borkowski <=
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Eli Zaretskii, 2015/11/14