unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: David Reitter <david.reitter@gmail.com>
Cc: 4892@debbugs.gnu.org
Subject: bug#4892: compute_motion, mouse_position
Date: Mon, 02 Dec 2019 13:42:55 +0000	[thread overview]
Message-ID: <m2o8wqvo68.fsf@breton.holly.idiocy.org> (raw)
In-Reply-To: <43A5D82E-4F2B-41C3-BC8E-598B3D44434F@gmail.com> (David Reitter's message of "Mon, 9 Nov 2009 12:10:17 -0500")

David Reitter <david.reitter@gmail.com> writes:

> 1. (mouse-position) does not return the selected frame when several
> frames overlap (partially).  To reproduce, I arrange the frames on the
> screen, then select the lower one by clicking with the mouse, then the
> one that's supposed to go on top.  With the mouse cursor still over
> the intersecting section (on top of the upper frame), I do M-: (mouse- 
> position).  This will then return the wrong frame.  Reproducible with
> Emacs -Q (NS port with NS frames)

It looks to me like it returns the last frame that an Emacs mouse event
was generated on. That's not necessarily the last frame clicked as the
standard behaviour on macOS is to NOT generate application events when
an OS window is selected.

It's unclear to me exactly what ns_mouse_position should be doing here.
I've had a look at the documentation and other terminal's
implementations and I'm none the wiser as there seem to be many
exceptions.

-- 
Alan Third





  parent reply	other threads:[~2019-12-02 13:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-09 17:10 bug#4892: compute_motion, mouse_position David Reitter
2009-11-09 19:46 ` Stefan Monnier
2019-12-02 13:42 ` Alan Third [this message]
2019-12-04 12:44   ` bug#4892: [PATCH] Fix mouse-position on macOS (bug#4892) Alan Third
2019-12-04 12:48     ` David Reitter
2019-12-10 20:55     ` Alan Third
2019-12-10 21:03       ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2o8wqvo68.fsf@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=4892@debbugs.gnu.org \
    --cc=david.reitter@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).