all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: David Reitter <david.reitter@gmail.com>
Cc: emacs-pretest-bug@gnu.org,
	Nathaniel Cunningham <nathaniel.cunningham@gmail.com>
Subject: Re: Carbon / USE_MAC_TOOLBAR: click in tool bar doesn't raise frame
Date: Thu, 17 Apr 2008 09:44:24 +0900	[thread overview]
Message-ID: <wlod89ia3b.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <83110B73-CA3A-42CA-B4D5-E25F66D805E1@gmail.com>

>>>>> On Wed, 16 Apr 2008 18:28:44 +0100, David Reitter <david.reitter@gmail.com> said:

> This affects the 22 branch Carbon build.  Begin forwarded message:

>> From: "Nathaniel Cunningham" <nathaniel.cunningham@gmail.com> Date:
>> 16 April 2008 15:07:15 BST
>> 
>> With the new tool bar in nightly builds, I find that clicking in
>> the tool bar doesn't raise the frame, whether clicking on an active
>> icon, a disabled icon, or blank bar in between.  This is counter-
>> intuitive and should be fixed if possible.

> Clicking on a disabled icon should raise the frame, while clicks on
> non-disabled icons should work as they do (standard click-through
> behavior).  This doesn't currently work.

Thanks for the report.  Could you try this?

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

Index: src/mactoolbox.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/Attic/mactoolbox.c,v
retrieving revision 1.1.2.2
diff -c -p -r1.1.2.2 mactoolbox.c
*** src/mactoolbox.c	7 Apr 2008 07:13:07 -0000	1.1.2.2
--- src/mactoolbox.c	17 Apr 2008 00:43:13 -0000
*************** XTread_socket (sd, expected, hold_quit)
*** 3560,3565 ****
--- 3558,3566 ----
  		  OSStatus err;
  		  HIViewRef ch;
  
+ 		  if (FrontNonFloatingWindow () != window_ptr)
+ 		    SelectWindow (window_ptr);
+ 
  		  err = HIViewGetViewForMouseEvent (HIViewGetRoot (window_ptr),
  						    eventRef, &ch);
  		  /* This doesn't work on Mac OS X 10.2.  */




  reply	other threads:[~2008-04-17  0:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20ecf6c70804160707t7e7881c4wdf0fbdc28b2f9bb7@mail.gmail.com>
2008-04-16 17:28 ` Carbon / USE_MAC_TOOLBAR: click in tool bar doesn't raise frame David Reitter
2008-04-17  0:44   ` YAMAMOTO Mitsuharu [this message]
2008-04-17  6:50     ` David Reitter
2008-04-17  8:02       ` YAMAMOTO Mitsuharu
2008-04-17  9:22         ` David Reitter
2008-04-17 23:20           ` YAMAMOTO Mitsuharu
2008-04-18  9:40             ` David Reitter

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=wlod89ia3b.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=david.reitter@gmail.com \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=nathaniel.cunningham@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.