all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin.blais@gmail.com
Subject: Getting notified on focus events.
Date: 25 Oct 2006 09:54:41 -0700	[thread overview]
Message-ID: <1161795281.249804.3110@i42g2000cwa.googlegroups.com> (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?

             reply	other threads:[~2006-10-25 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-25 16:54 martin.blais [this message]
2006-10-25 18:16 ` Getting notified on focus events rgb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1161795281.249804.3110@i42g2000cwa.googlegroups.com \
    --to=martin.blais@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.