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


View this message in rfc822 format

From: martin rudalics <rudalics <at> gmx.at>
To: Alan Third <alan <at> idiocy.org>
Cc: 27053 <at> debbugs.gnu.org, Aaron Jensen <aaronjensen <at> gmail.com>
Subject: 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 22:41:44 +0200
> Looks like the right way to get it in screen‐coords is
>
>      [NSEvent mouseLocation]
>
> which returns an NSPoint.
>
> https://developer.apple.com/reference/appkit/nsevent/1533380-mouselocation?language=objc
>
> Seems strange to me that it’s in NSEvent, but I guess it makes sense
> to someone.
>
> Patch attached.

I'd say go for it.

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.