GNU bug report logs - #71912
30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode

Previous Next

Package: emacs;

Reported by: Jones Stephen <happyojones <at> gmail.com>

Date: Wed, 3 Jul 2024 07:37:01 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Gerd Möllmann <gerd.moellmann <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gerd Möllmann <gerd.moellmann <at> gmail.com>
To: Jones Stephen <happyojones <at> gmail.com>
Cc: 71912 <at> debbugs.gnu.org
Subject: bug#71912: [Gerd Möllmann] Re: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode
Date: Mon, 12 Aug 2024 05:16:54 +0200
Jones Stephen <happyojones <at> gmail.com> writes:

> Yes, I can confirm that the attached patch resolves the issue.

Pushed to emacs-30. Thanks for testing!


>
> Gerd Möllmann <gerd.moellmann <at> gmail.com> 于2024年8月11日周日 19:25写道:
>
>  Jones Stephen <happyojones <at> gmail.com> writes:
>
>  > Thank you for the patch. I’ve tested it, and it does help, but I
>  > noticed there’s still a slight issue.
>  >
>  > Here’s what I found: if I leave my Mac idle for a while and it enters
>  > sleep mode, when I wake up the Mac and click to focus on Emacs, the
>  > frame position sometimes appears to be incorrect. However, if I put
>  > the Mac to sleep again and then immediately wake it up, the frame
>  > position is correct when I return to Emacs.
>  >
>  > Interestingly, when I moved the `adjustEmacsFrameRect` call to the
>  > `windowDidBecomeKey` method, the issue was completely resolved. After
>  > making this adjustment, the frame position remains correct regardless
>  > of the sleep duration or how the system is woken up.
>  >
>
>  (Please keep the list in CC, I've added it for this reply.)
>
>  Thanks. So an a complete patch would look like the attached patch,
>  right? Could you please confirm?




This bug report was last modified 346 days ago.

Previous Next


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