all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to determine (from Elisp) whether the Emacs frame has focus?
@ 2015-11-13 21:45 Marcin Borkowski
  2015-11-14  3:48 ` Emanuel Berg
                   ` (2 more replies)
  0 siblings, 3 replies; 26+ messages in thread
From: Marcin Borkowski @ 2015-11-13 21:45 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2015-11-17  0:10 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2293.1447451126.7904.help-gnu-emacs@gnu.org>
2015-11-16  6:53 ` How to determine (from Elisp) whether the Emacs frame has focus? Dan Espen
2015-11-17  0:10   ` Emanuel Berg
2015-11-13 21:45 Marcin Borkowski
2015-11-14  3:48 ` Emanuel Berg
2015-11-14  4:05 ` John Mastro
2015-11-14  7:30   ` tomas
2015-11-14  8:44     ` Marcin Borkowski
2015-11-14 10:45       ` tomas
2015-11-14 20:28         ` Marcin Borkowski
2015-11-14  8:06 ` Eli Zaretskii
2015-11-14  8:36   ` Random832
2015-11-14  9:36     ` Eli Zaretskii
2015-11-14 12:34       ` Marcin Borkowski
2015-11-14 13:40         ` Eli Zaretskii
2015-11-15  7:45           ` Marcin Borkowski
2015-11-15 19:45             ` Eli Zaretskii
2015-11-16 14:08             ` Nicolas Richard
2015-11-16 16:58               ` Marcin Borkowski
2015-11-14 21:10         ` Stefan Monnier
2015-11-16 17:00           ` Marcin Borkowski
2015-11-14  8:42   ` Marcin Borkowski
2015-11-14  8:59     ` Eli Zaretskii
2015-11-14 10:54       ` Yuri Khan
2015-11-14 11:04         ` Eli Zaretskii
2015-11-14  8:44   ` Michael Heerdegen
2015-11-14 10:15     ` Marcin Borkowski

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.