From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin.blais@gmail.com Newsgroups: gmane.emacs.help Subject: Getting notified on focus events. Date: 25 Oct 2006 09:54:41 -0700 Organization: http://groups.google.com Message-ID: <1161795281.249804.3110@i42g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1161798039 26821 80.91.229.2 (25 Oct 2006 17:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 17:40:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 25 19:40:35 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gcmjw-0004zt-Ts for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 19:40:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gcmjw-0003Uf-4z for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Oct 2006 13:40:32 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i42g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: 38.98.11.130 Original-X-Trace: posting.google.com 1161795286 17443 127.0.0.1 (25 Oct 2006 16:54:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 25 Oct 2006 16:54:46 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060719 Firefox/1.5.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i42g2000cwa.googlegroups.com; posting-host=38.98.11.130; posting-account=pAmraw0AAAANVfpklZ9PPfu2gOOc1GYF Original-Xref: shelby.stanford.edu gnu.emacs.help:142660 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38281 Archived-At: 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?