GNU bug report logs -
#28620
Mouse drag event records wrong window for release when crossing frames
Previous Next
Reported by: rswgnu <at> gmail.com
Date: Wed, 27 Sep 2017 15:45:01 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
On Sat, Sep 30, 2017 at 5:56 PM, Robert Weiner <rsw <at> gnu.org> wrote:
> In fact, the release event (drag event) contains the wrong
> frame (that of the depress rather than the release).
>
In looking at how mouse-1 is able to select the proper window of a mouse
click,
I found that the release binding of mouse-1 changes when a click is in a
frame
other than the selected one. In that case, it shifts from mouse-set-point
to
handle-switch-frame which selects the new frame. Is this shift due to the
transient-map
map setting in mouse-drag-track?
Eli, if you could point me to where the switch-frame event is generated
when the click
is in another frame, with that I might be able to produce a temporary fix
for this problem.
It would also help if in handle-switch-frame, the handle-focus-in hook
invocation occurred
after the call to do_switch_frame rather than before; then we could grab
the value of the
newly selected frame rather than the old one.
Bob
tBut I can't find anywhere in
the Emacs 25 code where mouse-1 is bound to handle-switch-frame.
Can you point me to where this is coded? Is the keymap in use changing?
Is there any way to capture a switch-frame event and attach my own handler
to
it? (I guess I could redefine the primitive handle-switch-fraem
[Message part 2 (text/html, inline)]
This bug report was last modified 4 years and 333 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.