From: Robert Weiner <rsw@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: Alan Third <alan@idiocy.org>,
Tak Kunihiro <homeros.misasa@gmail.com>,
emacs-devel <emacs-devel@gnu.org>
Subject: Re: Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames
Date: Thu, 2 Nov 2017 15:00:48 -0400 [thread overview]
Message-ID: <CA+OMD9g+_K6TSJ5Up2Dmhon8+zOBy7UP1wHKz7scwRaiKExgRg@mail.gmail.com> (raw)
In-Reply-To: <59FAEA97.308@gmx.at>
[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]
On Thu, Nov 2, 2017 at 5:51 AM, martin rudalics <rudalics@gmx.at> wrote:
>
> ‘frame-x-dot-y’ should be the Emacs frame under the mouse which is not
> necessarily the selected frame. Why do you want it to be the selected
>
> frame? Don't you want to drop your object on the frame under the mouse?
I see your point and agree.
But this is not what mouse-position and pixel-position return by default
(when mouse-position-function is nil)
on MacOS. They always return the last registered frame which is the frame
that was last clicked upon twice (as you
have noted, a single click does not register with Emacs but only selects
the frame). This seemed to be the case under
Windows 7 for me as well, using Emacs -q under Emacs 25.3 and Emacs 26.
Since I always reference the mouse position after a click or drag and can
make the new frame be selected after a drag,
I wrote the function this way to give me the most recently selected frame.
There needs to be a fix in the core of Emacs so these functions can return
the frame under the mouse regardless of how
the window manager handles selecting frames, I think.
Bob
[-- Attachment #2: Type: text/html, Size: 2927 bytes --]
next prev parent reply other threads:[~2017-11-02 19:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-12 16:27 Emacs 26: Code that fixes mouse-drag-and-drop-region to work across frames Robert Weiner
2017-10-12 16:42 ` Robert Weiner
2017-10-12 17:11 ` Robert Weiner
2017-10-13 9:57 ` Tak Kunihiro
2017-10-16 13:45 ` Robert Weiner
2017-10-16 14:13 ` Robert Weiner
2017-10-19 0:43 ` Tak Kunihiro
2017-10-26 22:07 ` Robert Weiner
2017-11-01 2:04 ` Tak Kunihiro
2017-11-01 15:24 ` Robert Weiner
2017-11-01 17:16 ` Alan Third
2017-11-01 20:18 ` Robert Weiner
2017-11-01 20:41 ` Robert Weiner
2017-11-02 9:51 ` martin rudalics
2017-11-02 19:00 ` Robert Weiner [this message]
2017-11-02 20:16 ` martin rudalics
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=CA+OMD9g+_K6TSJ5Up2Dmhon8+zOBy7UP1wHKz7scwRaiKExgRg@mail.gmail.com \
--to=rsw@gnu.org \
--cc=alan@idiocy.org \
--cc=emacs-devel@gnu.org \
--cc=homeros.misasa@gmail.com \
--cc=rswgnu@gmail.com \
--cc=rudalics@gmx.at \
/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.