Jones Stephen 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?