all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Getting notified on focus events.
@ 2006-10-25 16:54 martin.blais
  2006-10-25 18:16 ` rgb
  0 siblings, 1 reply; 2+ messages in thread
From: martin.blais @ 2006-10-25 16:54 UTC (permalink / raw)


Hi

New gig, new environment, and I inherited two glorious 30-inch LCD
monitors and a 24-in sidekick.  Nice setup one would think, but my
emacs windows are so unscrupulously large now that it takes me about 10
seconds to find where my cursor is, even with blinking on.  To
alleviate the problem, I wrote an Emacs package that will briefly flash
an overlay around the cursor when I switch frames.
http://furius.ca/pubcode/pub/conf/common/elisp/blais/highwin.el

While this is working well when switching between frames, I also need
to flash my cursor when I switch between window manager windows (e.g.
non-Emacs windows, the X-windows of other applications).  That is, I
need to be notified for enter-focus and leave-focus X events, somehow.

I tried adding an advice on handle-switch-frame and make-frame-visible
and a few other functions, and I cannot get it to work.  There are no
hooks I could find.

Any idea?  Can this be done?

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

end of thread, other threads:[~2006-10-25 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 16:54 Getting notified on focus events martin.blais
2006-10-25 18:16 ` rgb

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.