GNU bug report logs - #27053
26.0.50; x-show-tip gets wrong mouse position if frame moves w/o mouse moving on macOS

Previous Next

Package: emacs;

Reported by: Aaron Jensen <aaronjensen <at> gmail.com>

Date: Wed, 24 May 2017 12:33:02 UTC

Severity: normal

Found in version 26.0.50

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 27053 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Aaron Jensen <aaronjensen <at> gmail.com>
Cc: 27053 <at> debbugs.gnu.org
Subject: Re: bug#27053: 26.0.50; x-show-tip gets wrong mouse position if frame
 moves w/o mouse moving on macOS
Date: Thu, 25 May 2017 09:01:11 +0200
> I do not know what the best solution to this is. They could be stored
> in screen local coordinates and converted to frame local as they're
> needed, or they could be recalculated/asked for whenever the frame is
> moved.

Both, X and Windows query the absolute mouse position here and the NS
code should do the same (just that I don't have any idea what the direct
NS equivalent for XQueryPointer/GetCursorPos is - it should be somehwere
hidden in ns_mouse_position's

      position = [[view window] mouseLocationOutsideOfEventStream];
      position = [view convertPoint: position fromView: nil];

but I'm too lazy to figure that out).  last_mouse_motion_x/_y are
conceptually reserved for note_mouse_movement and should not be used for
anything else (IMHO).

martin




This bug report was last modified 8 years ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.