From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Jones Stephen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jul 2024 07:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71912@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17199921968815 (code B ref -1); Wed, 03 Jul 2024 07:37:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jul 2024 07:36:36 +0000 Received: from localhost ([127.0.0.1]:38529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOuXb-0002I4-4U for submit@debbugs.gnu.org; Wed, 03 Jul 2024 03:36:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:47286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sOpvN-0002qi-13 for submit@debbugs.gnu.org; Tue, 02 Jul 2024 22:40:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOptE-0005OZ-HX for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2024 22:38:37 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOpt8-00041Y-9k for bug-gnu-emacs@gnu.org; Tue, 02 Jul 2024 22:38:36 -0400 Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-446883be273so6324891cf.1 for ; Tue, 02 Jul 2024 19:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719974308; x=1720579108; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=4hIYZApzVRdJYOPQ2XCvT1ZHUcdzd5sU7BwYwSKDY/w=; b=cBHhXCbbrX+yovItasR99FeQmvFwYHKOSy7BqnABPPR+/zZxA0OevZOiZ2i53sqh7o LfF4Qhdfj1NQEyMyUXHtuXhnTZtBSV89SzhkBNXsOo5Yb88tGTW2Vwm5qR8SLLZyjFm2 5Y4PTTvzlfVxg5mzZFbHX8ynq2xqBs2RQI0yTc/4dHzsvNx8Tg67DkLVNIIrSy89ZkhC +C5AJTRp7xXGS3TBs+Uco97k3Y1jNbuICLavXoFmRZ5KXRGXcVoDznsRJV43UxTIwFsV X3uxZ5madJrV2ACw01Js6C7EYrhZI4QpThxWPCMHSukyU0DHmck4vBFOIwh98F2mdpn/ 50aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719974308; x=1720579108; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=4hIYZApzVRdJYOPQ2XCvT1ZHUcdzd5sU7BwYwSKDY/w=; b=bOuZCTFfTuR1eVJJis49iMRCtyd++EYkQJuLFQB5ZZeS0rUebDjhirnD3wi004+0A7 QHqtCzt6TzZTrAbH9/Vr3lTUZuOGWRfE3ObsAUuCLMqbB5WNXUSTiu+fZtS09cxe/W+j jmuNoSxheOJEb4zzZo3iImJ5LmcfPHKc5sNSRWItBUJQKrk8FfTJed2RgqugeEv9jWDT YwHrlZ4Mkn1eNJ0wXyzzw0FcKyC+CRHzwof8QQlSFa6gR17KWlzJ7vuycuQKMYwO7uXC YcagLTifTbSmVRnhekN0SeuIo91czpV5timeOkMIHlNKC4E8LBymLwslMivjY37okmoO xBiQ== X-Gm-Message-State: AOJu0YzbWzBY6EjnyY8PTPzAs9AnueNtAxzkonh36jO3x0pjoO53YjqW 4wdsa2lJUpE2Fl6v230Do7eaeyluiroQBk6lnDMOQGWpgkwHBEtKWaQt0AC4fuP2ECsJZJ/KDtQ PfNiB8jbXkfq7IySRgcO3+hlai2/TQzV4wiPYJA== X-Google-Smtp-Source: AGHT+IGw0F8iuxMWayvIv8/i47wdpkGr20vWqb37rspXnLfSiwMXwWbBeDHRUX91QI324THtbkHRAj+VqL1pv8x1J7I= X-Received: by 2002:a05:6214:29e1:b0:6b0:7485:71ac with SMTP id 6a1803df08f44-6b5b70d04ffmr122802626d6.38.1719974307774; Tue, 02 Jul 2024 19:38:27 -0700 (PDT) MIME-Version: 1.0 From: Jones Stephen Date: Wed, 3 Jul 2024 10:38:16 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000a34a77061c4eb9c8" Received-SPF: pass client-ip=2607:f8b0:4864:20::833; envelope-from=happyojones@gmail.com; helo=mail-qt1-x833.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Mailman-Approved-At: Wed, 03 Jul 2024 03:36:33 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000a34a77061c4eb9c8 Content-Type: text/plain; charset="UTF-8" Dear Emacs Developers, I am encountering an issue with window-absolute-pixel-position on macOS that leads to incorrect Y-coordinate values under specific conditions. This bug appears to manifest in two scenarios: after the system resumes from sleep, and when Emacs is in fullscreen mode. Environment: Emacs Version: (30.0.50) Operating System: macOS (After 14.00) Issue Description: After Sleep: When macOS resumes from sleep, the Y-coordinate value returned by window-absolute-pixel-position is off by approximately one-fourth of the screen height. During Fullscreen Mode: In fullscreen mode, the Y-coordinate is incorrectly offset by the height of the navbar. Steps to Reproduce: Open Emacs and position a window at a known pixel position. Either put the system to sleep and wake it, or switch Emacs to fullscreen mode. Evaluate (window-absolute-pixel-position) and note the Y-coordinate. Expected Behavior: The function should return accurate window positions regardless of sleep mode or fullscreen state, without any unexpected offsets. Actual Behavior: The Y-coordinate is inaccurately calculated, showing a significant offset that seems to be influenced by system sleep and fullscreen transitions. This issue can be particularly disruptive in workflows that rely on precise window positioning, such as automated GUI testing or window management scripts. Any insights or fixes would be greatly appreciated! Thank you for your attention to this matter. Best regards, happyo In GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin23.3.0, NS appkit-2487.40 Version 14.3 (Build 23D56)) of 2024-05-14 built on happyo.local Windowing system distributor 'Apple', version 10.3.2554 System Description: macOS 15.0 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@30/30.0.50/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@30/30.0.50 --with-xml2 --with-gnutls --without-compress-install --without-dbus --without-imagemagick --with-modules --with-rsvg --with-webp --with-ns --disable-ns-self-contained 'CFLAGS=-Os -w -pipe -mmacosx-version-min=14 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT' 'CPPFLAGS=-I/opt/homebrew/opt/icu4c/include -I/opt/homebrew/opt/sqlite/include -I/opt/homebrew/opt/readline/include -isystem/opt/homebrew/include -F/opt/homebrew/Frameworks -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk' 'LDFLAGS=-L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/lib -F/opt/homebrew/Frameworks -Wl,-headerpad_max_install_names -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'' Configured features: ACL GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: ELisp/l Minor modes in effect: rainbow-delimiters-mode: t smartparens-mode: t olivetti-mode: t electric-pair-mode: t projectile-mode: t hexl-follow-ascii: t copilot-mode: t lsp-bridge-mode: t auto-insert-mode: t yas-global-mode: t yas-minor-mode: t recentf-mode: t savehist-mode: t consult-notes-denote-mode: t denote-menu-bar-mode: t ns-auto-titlebar-mode: t treemacs-filewatch-mode: t treemacs-follow-mode: t treemacs-git-mode: t treemacs-fringe-indicator-mode: t global-git-commit-mode: t magit-auto-revert-mode: t server-mode: t my-custom-minor-mode: t windmove-mode: t global-auto-revert-mode: t vertico-posframe-mode: t vertico-mode: t meow-global-mode: t meow-mode: t meow-normal-mode: t delete-selection-mode: t meow-esc-mode: t cnfonts-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t minibuffer-regexp-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: ~/.emacs.d/site-lisp/ob-swift-enhanced/spinner hides /Users/belyenochi/.emacs.d/elpa/spinner-1.7.4/spinner ~/.emacs.d/site-lisp/vertico/vertico hides /Users/belyenochi/.emacs.d/elpa/vertico-20240511.2047/vertico /Users/belyenochi/.emacs.d/elpa/transient-20240609.2020/transient hides /opt/homebrew/Cellar/emacs-plus@30 /30.0.50/share/emacs/30.0.50/lisp/transient Features: (shadow sort mail-extr emacsbug goto-addr etags fileloop generator tramp-cmds treemacs-mouse-interface display-line-numbers treemacs-file-management hydra lv vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs log-view vc bug-reference magit-extras vc-git vc-dispatcher rainbow-mode network-stream nsm rainbow-delimiters smartparens loadhist olivetti elec-pair time init-macos mac-plugin init-pomodoro init-swift ob-swift-enhanced xcode-build swift-refactor swift-additions xcode-additions xcodebuildserver projectile ibuf-ext ibuffer ibuffer-loaddefs ios-simulator ios-device periphery periphery-helper mode-line-hud spinner ob-swift ob ob-tangle ol org-src ob-ref ob-lob ob-table ob-exp ob-comint ob-core org-cycle org-fold org-fold-core ob-eval org-keys oc org-compat org-macs async init-debug dape eglot external-completion flymake ert ewoc hexl gdb-mi bindat gud repeat swift-mode init-treesit swift-ts-mode c-ts-common treesit init-copilot copilot copilot-balancer editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch f jsonrpc init-lsp apheleia apheleia-rcs apheleia-dp apheleia-formatters apheleia-utils apheleia-log apheleia-formatter-context lsp-bridge lsp-bridge-semantic-tokens lsp-bridge-dart lsp-bridge-inlay-hint lsp-bridge-org-babel lsp-bridge-lsp-installer lsp-bridge-diagnostic lsp-bridge-code-action acm acm-quick-access acm-backend-jupyter acm-backend-org-roam acm-backend-copilot acm-backend-codeium acm-backend-ctags acm-backend-citre acm-backend-tabnine acm-backend-telega acm-backend-tempel acm-backend-search-sdcv-words acm-backend-search-file-words acm-backend-path acm-backend-lsp acm-backend-elisp acm-backend-yas acm-icon svg xml lsp-bridge-call-hierarchy lsp-bridge-peek lsp-bridge-jdtls lsp-bridge-ref grep lsp-bridge-epc acm-frame markdown-mode noutline outline init-exec-path exec-path-from-shell init-yasnippet autoinsert yasnippet lisp-mnt init-sessions dashboard dashboard-widgets recentf tree-widget ffap thingatpt savehist init-denote consult-notes-denote consult-notes denote-silo-extras denote init-org init-translate go-translate go-translate-v2 gts-engine-youdao gts-engine-stardict gts-engine-deepl gts-engine-google-rpc gts-engine-google gts-engine-bing gts-implements gts-faces gts-core gt-text-utility gt-engine-echo gt-engine-chatgpt gt-engine-youdao gt-engine-stardict gt-engine-deepl gt-engine-google-rpc gt-engine-google gt-engine-bing gt-extension plz warnings gt-faces gt-core let-alist dom init-mode-line init-gui-frames ns-auto-titlebar init-themes cus-edit cus-load wid-edit treemacs-nerd-icons treemacs treemacs-header-line treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags xref project treemacs-interface treemacs-persistence treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering treemacs-annotations treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals treemacs-fringe-indicator pulse treemacs-faces treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils pfuture inline hl-line ht treemacs-logging treemacs-customization treemacs-macros s nerd-icons nerd-icons-faces nerd-icons-data nerd-icons-data-mdicon nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline nerd-icons-data-octicon nerd-icons-data-pomicon nerd-icons-data-ipsicon ef-summer-theme chinese-color ef-themes init-magit magit-bookmark magit-submodule magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff diff-mode track-changes git-commit log-edit message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor server magit-mode transient magit-git magit-base magit-section cursor-sensor crm dash init-keybinding init-lisp init-treemacs init-windows windmove init-editing-utils autorevert filenotify init-search consult vertico-posframe vertico-multiform posframe vertico compat fussy flx init-xterm vterm bookmark face-remap compile text-property-search term disp-table ehelp vterm-module term/xterm xterm vterm-toggle tramp-sh tramp trampver tramp-integration files-x tramp-message tramp-compat xdg shell pcomplete comint ansi-osc ring parse-time iso8601 time-date format-spec ansi-color tramp-loaddefs init-projectile init-meow cl-extra meow meow-tutor meow-cheatsheet meow-cheatsheet-layout meow-core meow-shims delsel meow-esc meow-command array meow-beacon meow-thing meow-visual meow-keypad meow-helpers meow-util color meow-keymap meow-face meow-var init-proxy init-osx-keys edmacro kmacro init-chinese cnfonts touch-screen init-func init-elpa use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key use-package-core finder-inf apheleia-autoloads easy-mmode async-autoloads auto-package-update-autoloads cnfonts-autoloads dashboard-autoloads default-text-scale-autoloads disable-mouse-autoloads editorconfig-autoloads exec-path-from-shell-autoloads f-autoloads format-all-autoloads fussy-autoloads flx-autoloads ibuffer-projectile-autoloads imenu-list-autoloads indent-guide-autoloads inheritenv-autoloads language-id-autoloads markdown-mode-autoloads move-dup-autoloads ns-auto-titlebar-autoloads objc-font-lock-autoloads olivetti-autoloads orderless-autoloads paradox-autoloads plz-autoloads prettier-js-autoloads rainbow-delimiters-autoloads rainbow-mode-autoloads slime-autoloads macrostep-autoloads smartparens-autoloads smooth-scrolling-autoloads speed-type-autoloads spinner-autoloads transwin-autoloads treemacs-icons-dired-autoloads treemacs-magit-autoloads magit-autoloads pcase magit-section-autoloads git-commit-autoloads transient-autoloads treemacs-nerd-icons-autoloads nerd-icons-autoloads treemacs-projectile-autoloads projectile-autoloads treemacs-tab-bar-autoloads treemacs-autoloads cfrs-autoloads ht-autoloads hydra-autoloads lv-autoloads pfuture-autoloads ace-window-autoloads avy-autoloads s-autoloads unicode-escape-autoloads pp rx names edebug debug backtrace help-mode find-func dash-autoloads names-autoloads advice vertico-posframe-autoloads vertico-autoloads posframe-autoloads vterm-toggle-autoloads vterm-autoloads vundo-autoloads wgrep-autoloads info with-editor-autoloads package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 1184799 9644722) (symbols 48 64280 2983) (strings 32 386699 132024) (string-bytes 1 17501886) (vectors 16 97354) (vector-slots 8 1735672 1510714) (floats 8 1268 28445) (intervals 56 51964 36252) (buffers 992 85)) --000000000000a34a77061c4eb9c8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable



Dear Emac= s Developers,

I am encountering an issue with window-absolute-pixel-position on macOS th= at leads to incorrect Y-coordinate values under specific conditions. This b= ug appears to manifest in two scenarios: after the system resumes from slee= p, and when Emacs is in fullscreen mode.

Environment:

Emacs Version: (30.0.50)
Operating System: macOS (Aft= er 14.00)
Issue Description:

After Sleep: When macOS resumes from sleep, the Y-coordinate valu= e returned by window-absolute-pixel-position is off by approximately one-fo= urth of the screen height.
During Fullscreen Mode: In fullscreen mode, the Y-coor= dinate is incorrectly offset by the height of the navbar.
Steps to Reproduce:
Open Emacs and= position a window at a known pixel position.
Either put the system to sleep and = wake it, or switch Emacs to fullscreen mode.
Evaluate (window-absolute-pixel-posi= tion) and note the Y-coordinate.
Expected Behavior:
The function should return accurate= window positions regardless of sleep mode or fullscreen state, without any= unexpected offsets.

Actual Behavior:
The Y-coordinate is inaccurately calculated, showing a s= ignificant offset that seems to be influenced by system sleep and fullscree= n transitions.

This issue can be particularly disruptive in workflows that rely on preci= se window positioning, such as automated GUI testing or window management s= cripts. Any insights or fixes would be greatly appreciated!

Thank you for your attention= to this matter.

Best regards,
happyo


I= n GNU Emacs 30.0.50 (build 2, aarch64-apple-darwin23.3.0, NS
appkit-2487.40 Versi= on 14.3 (Build 23D56)) of 2024-05-14 built on
happyo.local
Windowing system distributor= 'Apple', version 10.3.2554
System Description: =C2=A0macOS 15.0
Configured using:
'conf= igure --disable-dependency-tracking --disable-silent-rules

--enable-locallisppat= h=3D/opt/homebrew/share/emacs/site-lisp
--infodir=3D/opt/homebrew/Cellar/emacs-pl= us@30/30.0.50/share/info/emacs
--prefix=3D/opt/homebrew/Cellar/emacs-plus@30/30.0= .50 --with-xml2
--with-gnutls --without-compress-install --without-dbus--without-image= magick --with-modules --with-rsvg --with-webp --with-ns
--disable-ns-self-contain= ed 'CFLAGS=3D-Os -w -pipe
-mmacosx-version-min=3D14
-isysroot/Library/Developer/Com= mandLineTools/SDKs/MacOSX14.sdk
-DFD_SETSIZE=3D10000 -DDARWIN_UNLIMITED_SELECT= 9;
= 9;CPPFLAGS=3D-I/opt/homebrew/opt/icu4c/include
-I/opt/homebrew/opt/sqlite/include= -I/opt/homebrew/opt/readline/include
-isystem/opt/homebrew/include -F/opt/homebr= ew/Frameworks
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk'=
= '= LDFLAGS=3D-L/opt/homebrew/opt/icu4c/lib -L/opt/homebrew/opt/sqlite/lib

-L/opt/hom= ebrew/opt/readline/lib -L/opt/homebrew/lib
-F/opt/homebrew/Frameworks -Wl,-header= pad_max_install_names
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.= sdk''

Configured features:
ACL GIF GLIB GMP GNUTLS JPEG LCMS2 LIBXML2 MODULES NOTIFY K= QUEUE NS
PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER
WEBP XIM= ZLIB


Importa= nt settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix

Major mode: ELisp/l=

Minor modes in effe= ct:
ra= inbow-delimiters-mode: t
smartparens-mode: t
olivetti-mode: t
electric-pair-mode: tprojectile-mode= : t
he= xl-follow-ascii: t
copilot-mode: t
lsp-bridge-mode: t
auto-insert-mode: t
yas-global-mode: t=
yas-minor-mo= de: t
= recentf-mode: t
savehist-mode: t
consult-notes-denote-mode: t
denote-menu-bar-mode: t<= br style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">ns-auto-title= bar-mode: t
treemacs-filewatch-mode: t
treemacs-follow-mode: t
treemacs-git-mode: ttreemacs-fringe= -indicator-mode: t
global-git-commit-mode: t
magit-auto-revert-mode: t
server-mode: t=
my-custom-mi= nor-mode: t
windmove-mode: t
global-auto-revert-mode: t
vertico-posframe-mode: t
vertico-mode: t<= /span>
<= span style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">meow-g= lobal-mode: t

meow-mode: t
meow-normal-mode: t
delete-selection-mode: t
meow-esc-mode: t
cnfonts-mode: t<= /span>
<= span style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">overri= de-global-mode: t

tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-= mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
minibuffe= r-regexp-mode: t

line-number-mode: t
visual-line-mode: t
transient-mark-mode: t
auto-composition-mo= de: t
= auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
~/.emacs.d/site-lisp/ob-swift-en= hanced/spinner hides /Users/belyenochi/.emacs.d/elpa/spinner-1.7.4/spinner<= /span>
<= span style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">~/.ema= cs.d/site-lisp/vertico/vertico hides /Users/belyenochi/.emacs.d/elpa/vertic= o-20240511.2047/vertico

/Users/belyenochi/.emacs.d/elpa/transient-20240609.2020/t= ransient hides /opt/homebrew/Cellar/emacs-plus@30/30.0.50/share/emacs/30.0.= 50/lisp/transient

Features:
(shadow sort mail-extr emacsbug goto-addr etags fileloop generator=
= tramp= -cmds treemacs-mouse-interface display-line-numbers
treemacs-file-management hydr= a lv vc-hg vc-bzr vc-src vc-sccs vc-svn
vc-cvs vc-rcs log-view vc bug-reference m= agit-extras vc-git
vc-dispatcher rainbow-mode network-stream nsm rainbow-delimite= rs
sma= rtparens loadhist olivetti elec-pair time init-macos mac-plugin
init-pomodoro in= it-swift ob-swift-enhanced xcode-build swift-refactor
swift-additions xcode-addit= ions xcodebuildserver projectile ibuf-ext
ibuffer ibuffer-loaddefs ios-simulator = ios-device periphery
periphery-helper mode-line-hud spinner ob-swift ob ob-tangle= ol org-src
ob-ref ob-lob ob-table ob-exp ob-comint ob-core org-cycle org-fold

org-fold= -core ob-eval org-keys oc org-compat org-macs async init-debug
dape eglot exter= nal-completion flymake ert ewoc hexl gdb-mi bindat gud
repeat swift-mode init-tre= esit swift-ts-mode c-ts-common treesit
init-copilot copilot copilot-balancer edit= orconfig editorconfig-core
editorconfig-core-handle editorconfig-fnmatch f jsonrp= c init-lsp
apheleia apheleia-rcs apheleia-dp apheleia-formatters apheleia-utils
aphelei= a-log apheleia-formatter-context lsp-bridge

lsp-bridge-semantic-tokens lsp-bridge= -dart lsp-bridge-inlay-hint
lsp-bridge-org-babel lsp-bridge-lsp-installer lsp-bri= dge-diagnostic
lsp-bridge-code-action acm acm-quick-access acm-backend-jupyter
acm-back= end-org-roam acm-backend-copilot acm-backend-codeium

acm-backend-ctags acm-backen= d-citre acm-backend-tabnine
acm-backend-telega acm-backend-tempel acm-backend-sea= rch-sdcv-words
acm-backend-search-file-words acm-backend-path acm-backend-lsp

acm-backe= nd-elisp acm-backend-yas acm-icon svg xml
lsp-bridge-call-hierarchy lsp-bridge-pe= ek lsp-bridge-jdtls
lsp-bridge-ref grep lsp-bridge-epc acm-frame markdown-mode no= utline
outline init-exec-path exec-path-from-shell init-yasnippet autoinsert

yasnippet = lisp-mnt init-sessions dashboard dashboard-widgets recentf
tree-widget ffap thin= gatpt savehist init-denote consult-notes-denote
consult-notes denote-silo-extras = denote init-org init-translate
go-translate go-translate-v2 gts-engine-youdao gts= -engine-stardict
gts-engine-deepl gts-engine-google-rpc gts-engine-google gts-eng= ine-bing
gts-implements gts-faces gts-core gt-text-utility gt-engine-echo<= br style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">gt-engine-cha= tgpt gt-engine-youdao gt-engine-stardict gt-engine-deepl
gt-engine-google-rpc gt-= engine-google gt-engine-bing gt-extension plz
warnings gt-faces gt-core let-alist= dom init-mode-line init-gui-frames
ns-auto-titlebar init-themes cus-edit cus-loa= d wid-edit
treemacs-nerd-icons treemacs treemacs-header-line treemacs-compatibili= ty
tre= emacs-mode treemacs-bookmarks treemacs-tags xref project
treemacs-interface treem= acs-persistence treemacs-filewatch-mode
treemacs-follow-mode treemacs-rendering t= reemacs-annotations
treemacs-async treemacs-workspaces treemacs-dom treemacs-visu= als
tr= eemacs-fringe-indicator pulse treemacs-faces treemacs-icons
treemacs-scope treema= cs-themes treemacs-core-utils pfuture inline
hl-line ht treemacs-logging treemacs= -customization treemacs-macros s
nerd-icons nerd-icons-faces nerd-icons-data nerd= -icons-data-mdicon
nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data= -devicon
nerd-icons-data-sucicon nerd-icons-data-wicon nerd-icons-data-faicon
nerd-icon= s-data-powerline nerd-icons-data-octicon

nerd-icons-data-pomicon nerd-icons-data-= ipsicon ef-summer-theme
chinese-color ef-themes init-magit magit-bookmark magit-s= ubmodule
magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull<= /span>
<= span style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">magit-= fetch magit-clone magit-remote magit-commit magit-sequence

magit-notes magit-wor= ktree magit-tag magit-merge magit-branch
magit-reset magit-files magit-refs magit= -status magit magit-repos
magit-apply magit-wip magit-log which-func imenu magit-= diff smerge-mode
diff diff-mode track-changes git-commit log-edit message sendmai= l
yank= -media puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg<= br style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px">rfc6068 epg-c= onfig gnus-util mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 = mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader pcvs-uti= l add-log magit-core
magit-autorevert magit-margin magit-transient magit-process = with-editor
server magit-mode transient magit-git magit-base magit-section=
cursor-senso= r crm dash init-keybinding init-lisp init-treemacs
init-windows windmove init-edi= ting-utils autorevert filenotify
init-search consult vertico-posframe vertico-mul= tiform posframe vertico
compat fussy flx init-xterm vterm bookmark face-remap com= pile
t= ext-property-search term disp-table ehelp vterm-module term/xterm xterm
vterm-tog= gle tramp-sh tramp trampver tramp-integration files-x

tramp-message tramp-compat = xdg shell pcomplete comint ansi-osc ring
parse-time iso8601 time-date format-spec= ansi-color tramp-loaddefs
init-projectile init-meow cl-extra meow meow-tutor meo= w-cheatsheet
meow-cheatsheet-layout meow-core meow-shims delsel meow-esc meow-com= mand
a= rray meow-beacon meow-thing meow-visual meow-keypad meow-helpers
meow-util color = meow-keymap meow-face meow-var init-proxy init-osx-keys
edmacro kmacro init-chine= se cnfonts touch-screen init-func init-elpa
use-package use-package-ensure use-pa= ckage-delight use-package-diminish
use-package-bind-key bind-key use-package-core= finder-inf
apheleia-autoloads easy-mmode async-autoloads
auto-package-update-autoloads= cnfonts-autoloads dashboard-autoloads
default-text-scale-autoloads disable-mouse= -autoloads
editorconfig-autoloads exec-path-from-shell-autoloads f-autoloads
format-all= -autoloads fussy-autoloads flx-autoloads

ibuffer-projectile-autoloads imenu-list-= autoloads indent-guide-autoloads
inheritenv-autoloads language-id-autoloads markd= own-mode-autoloads
move-dup-autoloads ns-auto-titlebar-autoloads objc-font-lock-a= utoloads
olivetti-autoloads orderless-autoloads paradox-autoloads plz-autoloads
prettie= r-js-autoloads rainbow-delimiters-autoloads

rainbow-mode-autoloads slime-autoload= s macrostep-autoloads
smartparens-autoloads smooth-scrolling-autoloads speed-type= -autoloads
spinner-autoloads transwin-autoloads treemacs-icons-dired-autoloads
treemacs= -magit-autoloads magit-autoloads pcase magit-section-autoloads

git-commit-autol= oads transient-autoloads treemacs-nerd-icons-autoloads
nerd-icons-autoloads treem= acs-projectile-autoloads projectile-autoloads
treemacs-tab-bar-autoloads treemacs= -autoloads cfrs-autoloads
ht-autoloads hydra-autoloads lv-autoloads pfuture-autol= oads
a= ce-window-autoloads avy-autoloads s-autoloads unicode-escape-autoloads
pp rx name= s edebug debug backtrace help-mode find-func dash-autoloads

names-autoloads advic= e vertico-posframe-autoloads vertico-autoloads
posframe-autoloads vterm-toggle-au= toloads vterm-autoloads
vundo-autoloads wgrep-autoloads info with-editor-autoload= s package
browse-url url url-proxy url-privacy url-expand url-methods url-history=
= url-c= ookie generate-lisp-file url-domsuf url-util mailcap url-handlersurl-parse auth-= source cl-seq eieio eieio-core cl-macs icons
password-cache json subr-x map byte-= opt gv bytecomp byte-compile
url-vars cl-loaddefs cl-lib rmc iso-transl tooltip c= conv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode= mwheel
term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd
fontset= image regexp-opt fringe tabulated-list replace newcomment

text-mode lisp-mode p= rog-mode register page tab-bar menu-bar rfn-eshadow
isearch easymenu timer select= scroll-bar mouse jit-lock font-lock syntax
font-core term/tty-colors frame minib= uffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lan= g misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932= hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite= emoji-zwj charscript charprop case-table epa-hook

jka-cmpr-hook help abbrev obar= ray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp = files window text-properties
overlay sha1 md5 base64 format env code-pages mule c= ustom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lc= ms2
mu= lti-tty make-network-process emacs)

Memory information:
((conses 16 1184799 9644722) (symbols = 48 64280 2983)
(strings 32 386699 132024) (string-bytes 1 17501886)
(vectors 16 97354) = (vector-slots 8 1735672 1510714)
(floats 8 1268 28445) (intervals 56 51964 36252)= (buffers 992 85))
--000000000000a34a77061c4eb9c8-- From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2024 11:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jones Stephen Cc: 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.17217328441829 (code B ref 71912); Tue, 23 Jul 2024 11:08:01 +0000 Received: (at 71912) by debbugs.gnu.org; 23 Jul 2024 11:07:24 +0000 Received: from localhost ([127.0.0.1]:59299 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWDMZ-0000TQ-GB for submit@debbugs.gnu.org; Tue, 23 Jul 2024 07:07:23 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:57785) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWDMX-0000TE-P9 for 71912@debbugs.gnu.org; Tue, 23 Jul 2024 07:07:22 -0400 Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a7a9a7af0d0so55298066b.3 for <71912@debbugs.gnu.org>; Tue, 23 Jul 2024 04:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721732771; x=1722337571; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=3CnzYSvn1Q22S0LEPPXeU8g2x2s4MrLp7P4Gk9WT1mM=; b=KGxV7UyZcB93+YlXiKgBgwyeIfSYzTL8DPZ5dUg9JaYUYHOrdGsSr9B2LTDCr9WJel GXQd1ObC9AdnenqUur7b3jFn6+tShxv5bNJNtkPtO6sEMqT8QdrV3wqUSbWwlaNwx3cX MnMa+Lmhl7PGqSXNt1eBbPAoct9HmeS1e5M1fHlhtVkHRFgGAWFXXC6fGgTcsLJL47KQ TU+fOfIH8rTDQqzI64A9DSbFKiazkBvrIqN9kkEwCZ+L553cWvDbpaE4EryvLYYmNGri rA6x356ldpT5Rl5wIPGb/cNcVVs35xaKzbpcSET2ZeJVqn12ebAYyYb5Aeqd02Ps1wNT rFHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721732771; x=1722337571; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=3CnzYSvn1Q22S0LEPPXeU8g2x2s4MrLp7P4Gk9WT1mM=; b=qG7M28OnAkag3jHGxfwbhMInGIYpoRyCu6EkG5YRSrFFvzVIXSxNhjYj/v4QqrVhWG MNC38Fnjezes5KFkTwEJ06InU+pbdr69ZjMLCYkmbQNSYeli13ktKWbhSgh65nlhbl+K C4Mx1gS/G/D6ZjjxQvWPtgTcjs+F2ID00avjALbIBHOyZCZsCnNw5rrBmTZA/YUv9r2C wLXXY7yLqFJ7O+j1YUKXSsOWzy5rbqivCn+2F2KHarqNh1ZbS5+CDDQVk0Mg0jHH1pjT 6rlux+yPyf03/7DdbXoIkxd2yKyIrWy6CEgvO98+C6c8c4+KAqS7/iIpeJqY/zeTseOg 3IoQ== X-Gm-Message-State: AOJu0YxZiGeLrzo5M0FeB3HJthaApHcCJFWrZHtCtUkIeh8EwRor0MeC ZVQk97xLkCw0EmWk+4E882Y6Q+QS0Y74AMGddWh80nEVQdDbzenqBxYCSw== X-Google-Smtp-Source: AGHT+IHf0Mu6OW3+bLrL/MaUHmXeG508Vb/X0arwnb5UcdUxzX4BTf/L9EGJk8sHTtDZyMW0KkGUMg== X-Received: by 2002:a17:906:7952:b0:a77:e7cb:2979 with SMTP id a640c23a62f3a-a7a4c2a6123mr757673366b.51.1721732771017; Tue, 23 Jul 2024 04:06:11 -0700 (PDT) Received: from pro2.fritz.box (pd9e3603f.dip0.t-ipconnect.de. [217.227.96.63]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a3c94edb4sm524836266b.196.2024.07.23.04.06.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 04:06:10 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: (Jones Stephen's message of "Wed, 3 Jul 2024 10:38:16 +0800") References: Date: Tue, 23 Jul 2024 13:06:09 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jones Stephen writes: > Dear Emacs Developers, > > I am encountering an issue with window-absolute-pixel-position on macOS that leads to incorrect Y-coordinate values under specific conditions. This > bug appears to manifest in two scenarios: after the system resumes from sleep, and when Emacs is in fullscreen mode. > > Environment: > > Emacs Version: (30.0.50) > Operating System: macOS (After 14.00) > Issue Description: > > After Sleep: When macOS resumes from sleep, the Y-coordinate value returned by window-absolute-pixel-position is off by approximately one-fourth > of the screen height. > During Fullscreen Mode: In fullscreen mode, the Y-coordinate is incorrectly offset by the height of the navbar. > Steps to Reproduce: > > Open Emacs and position a window at a known pixel position. > Either put the system to sleep and wake it, or switch Emacs to fullscreen mode. > Evaluate (window-absolute-pixel-position) and note the Y-coordinate. > Expected Behavior: > The function should return accurate window positions regardless of sleep mode or fullscreen state, without any unexpected offsets. > > Actual Behavior: > The Y-coordinate is inaccurately calculated, showing a significant offset that seems to be influenced by system sleep and fullscreen transitions. > > This issue can be particularly disruptive in workflows that rely on precise window positioning, such as automated GUI testing or window management > scripts. Any insights or fixes would be greatly appreciated! > > Thank you for your attention to this matter. > > Best regards, > happyo I can reproduce this (only tried the fullscreen case), but I don't know how to fix it. In a fullscreen frame, eval (ns-frame-edges (selected-frame) 'native-edges) -> (566 39 2290 1107) That is, both left and top are bogus values. Also, (frame-parameter (selected-frame) 'fullscreen) -> fullboth (frame-parameter (selected-frame) 'top) -> 39 (frame-parameter (selected-frame) 'left) -> 566 which is why ns-frame-edges in its current implementation returns these values for left and top. Don't know what is expected here. Should top and left frame parameters have been set to 0 somewhere? Or is the implementation of ns-frame-edges wrong in using top_pos and left_pos of the frame? From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 07:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jones Stephen Cc: Alan Third , 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172189322921574 (code B ref 71912); Thu, 25 Jul 2024 07:41:02 +0000 Received: (at 71912) by debbugs.gnu.org; 25 Jul 2024 07:40:29 +0000 Received: from localhost ([127.0.0.1]:35425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWt5Q-0005bt-B3 for submit@debbugs.gnu.org; Thu, 25 Jul 2024 03:40:28 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:55375) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWt5O-0005bl-4Q for 71912@debbugs.gnu.org; Thu, 25 Jul 2024 03:40:27 -0400 Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52f01993090so688714e87.2 for <71912@debbugs.gnu.org>; Thu, 25 Jul 2024 00:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721893158; x=1722497958; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=dtsi1lKjTDiJP6fXOiewMyAzbmq/FMMeTARFOCjSueQ=; b=OJyQqkfRXch+daP5SslgMLcM36L8WCDM7OaY/mR9lSTUgF3hcZSCJMJoq2458J0fto e3pHSyaUg80nbBsSV1Qa/KK8uEAqOV6SoW+t9NOfHg863xc5GvMng81KvQ+3wppzHUVf XszZOfFq71U3BArSysTul9KOewuT3+gv3sCr69r2j8G2qw6hFBL52hUpyeOo4gZhUF/c A/D7yWBswCtx0Rw41RTc9BZjeWor5tloAdOAT9mfu6Plj7wBVUKpoZ07Hp0XxH4ELLG/ JOEGILVYiU3d6VxBliMRtTib8mRBwXAYjb+SqLF+F6XBt/oPNrmzM1e1O5uozAgqurPt OHpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721893158; x=1722497958; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dtsi1lKjTDiJP6fXOiewMyAzbmq/FMMeTARFOCjSueQ=; b=cpYF25FUaZj97x9psmag9mL65rJ2kIWGQm39OYu3w78T8z9m3r4LuBEzW+oBxAsFpT gBII9F/4NvaIwv0SLS2Ix1VKgn2sEYWhyg2ioldwDNUIDaEsQPmniKAm0Nf6uTG8vewR 8bGqDVRxK7HlEmJPqypZxOmKXvuN/8v1+qkNrGVLHIHoxw4Y4Py8x/A8zqm+GBnCoRmD J/Dre8nnY7s74g1Ep2tIXAuXNDwtvdgVAf1FkG0AK1kxCKwKjlZqgNmsVoezarrNj7vn JNwStaG7FoRkQQHllBEU4cKRNDyVpl6jV+iOY8ff9j67ry13GsRqjCvJiDChkjCS/iFb sTjw== X-Gm-Message-State: AOJu0YxkdGuMRT/fWJmXoQKePHNzI1XcLp6qFttergkYxI4cz98uuEVb MBbnRfY+6DoUcVkq575+qBncY/UsePCdJdqL1z4tPWexvQ1jT8M3 X-Google-Smtp-Source: AGHT+IFM7n2zgOrqCsbUEuapG9JpiANUbXnMMTd06wXy8kqbuj8TsLksCWUYH2bFzlFbt62/y69SMg== X-Received: by 2002:a05:6512:234a:b0:52e:a7a6:ed7f with SMTP id 2adb3069b0e04-52fd6093268mr725968e87.60.1721893157783; Thu, 25 Jul 2024 00:39:17 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a121.dip0.t-ipconnect.de. [79.227.161.33]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac63d4720dsm527259a12.58.2024.07.25.00.39.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 00:39:17 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Tue, 23 Jul 2024 13:06:09 +0200") References: Date: Thu, 25 Jul 2024 09:39:16 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Gerd M=C3=B6llmann writes: > Jones Stephen writes: > >> Dear Emacs Developers, >> >> I am encountering an issue with window-absolute-pixel-position on macOS = that leads to incorrect Y-coordinate values under specific conditions. This >> bug appears to manifest in two scenarios: after the system resumes from = sleep, and when Emacs is in fullscreen mode. >> >> Environment: >> >> Emacs Version: (30.0.50) >> Operating System: macOS (After 14.00) >> Issue Description: >> >> After Sleep: When macOS resumes from sleep, the Y-coordinate value retur= ned by window-absolute-pixel-position is off by approximately one-fourth >> of the screen height. >> During Fullscreen Mode: In fullscreen mode, the Y-coordinate is incorrec= tly offset by the height of the navbar. >> Steps to Reproduce: >> >> Open Emacs and position a window at a known pixel position. >> Either put the system to sleep and wake it, or switch Emacs to fullscree= n mode. >> Evaluate (window-absolute-pixel-position) and note the Y-coordinate. >> Expected Behavior: >> The function should return accurate window positions regardless of sleep= mode or fullscreen state, without any unexpected offsets. >> >> Actual Behavior: >> The Y-coordinate is inaccurately calculated, showing a significant offse= t that seems to be influenced by system sleep and fullscreen transitions. >> >> This issue can be particularly disruptive in workflows that rely on prec= ise window positioning, such as automated GUI testing or window management >> scripts. Any insights or fixes would be greatly appreciated! >> >> Thank you for your attention to this matter. >> >> Best regards, >> happyo > > I can reproduce this (only tried the fullscreen case), but I don't know > how to fix it. In a fullscreen frame, eval > > (ns-frame-edges (selected-frame) 'native-edges) > -> (566 39 2290 1107) > > That is, both left and top are bogus values. Also, > > (frame-parameter (selected-frame) 'fullscreen) > -> fullboth > (frame-parameter (selected-frame) 'top) > -> 39 > (frame-parameter (selected-frame) 'left) > -> 566 > > which is why ns-frame-edges in its current implementation returns these > values for left and top. Don't know what is expected here. Should top > and left frame parameters have been set to 0 somewhere? Or is the > implementation of ns-frame-edges wrong in using top_pos and left_pos of > the frame? The following patch for master addresses this at least partially. Part of the problem is, it appears to me, is that windowDidMove is not called when entering/exiting fullscreen mode, so that a frame's left_pos and top_pos are not adjusted. The patch tries to fix that. I haven't found out what to do with the frame parameters top and left. (Alan Third CC'd) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-macOS-adjust-frame-position-when-entering-exiting-fu.patch Content-Description: adjustEmacsFrameRect >From 78f81f9089b51c2de06ca0ad62f4c42c37303c4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= Date: Thu, 25 Jul 2024 09:20:04 +0200 Subject: [PATCH] macOS: adjust frame position when entering/exiting fullscreen * src/nsterm.h ([EmacsView adjustEmacsRectRect]): Declare. * src/nsterm.m ([EmacsView windowDidEnterFullScreen]): New method. ([EmacsView windowDidEnterFullScreen]): Call it. ([EmacsView windowDidExitFullScreen]): Call it. --- src/nsterm.h | 1 + src/nsterm.m | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/nsterm.h b/src/nsterm.h index 3a713f8e8c9..e3f55c4e41c 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -522,6 +522,7 @@ #define NSTRACE_UNSILENCE() - (void)copyRect:(NSRect)srcRect to:(NSPoint)dest; /* Non-notification versions of NSView methods. Used for direct calls. */ +- (void)adjustEmacsFrameRect; - (void)windowWillEnterFullScreen; - (void)windowDidEnterFullScreen; - (void)windowWillExitFullScreen; diff --git a/src/nsterm.m b/src/nsterm.m index 2aadada2df6..10e06b07962 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8318,6 +8318,15 @@ - (void)windowDidEnterFullScreen:(NSNotification *)notification [self windowDidEnterFullScreen]; } +- (void)adjustEmacsFrameRect +{ + struct frame *f = emacsframe; + NSWindow *frame_window = [FRAME_NS_VIEW (f) window]; + NSRect r = [frame_window frame]; + f->left_pos = NSMinX (r) - NS_PARENT_WINDOW_LEFT_POS (f); + f->top_pos = NS_PARENT_WINDOW_TOP_POS (f) - NSMaxY (r); +} + - (void)windowDidEnterFullScreen /* provided for direct calls */ { NSTRACE ("[EmacsView windowDidEnterFullScreen]"); @@ -8347,6 +8356,10 @@ - (void)windowDidEnterFullScreen /* provided for direct calls */ } #endif } + + /* Do what windowDidMove does which isn't called when entering/exiting + fullscreen mode. */ + [self adjustEmacsFrameRect]; } - (void)windowWillExitFullScreen:(NSNotification *)notification @@ -8389,6 +8402,10 @@ - (void)windowDidExitFullScreen /* provided for direct calls */ if (next_maximized != -1) [[self window] performZoom:self]; + + /* Do what windowDidMove does which isn't called when entering/exiting + fullscreen mode. */ + [self adjustEmacsFrameRect]; } - (BOOL)fsIsNative -- 2.45.2 --=-=-=-- From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Cc: Jones Stephen , 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172202191814388 (code B ref 71912); Fri, 26 Jul 2024 19:26:02 +0000 Received: (at 71912) by debbugs.gnu.org; 26 Jul 2024 19:25:18 +0000 Received: from localhost ([127.0.0.1]:40070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQZ4-0003k0-8q for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:25:18 -0400 Received: from dane.soverin.net ([185.233.34.148]:45205) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQZ1-0003jX-CU for 71912@debbugs.gnu.org; Fri, 26 Jul 2024 15:25:17 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4WVyPj3vgyz2xDx; Fri, 26 Jul 2024 19:24:57 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4WVyPh75VBzKy; Fri, 26 Jul 2024 19:24:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1722021897; bh=V+yzP637RBWnD5EM8xZuL0LCpsr+1hlW6jZkdhJozL0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bVo8X5YxQGtFg7WczHfk3U39UUYZ8zU9sasNXkLXoW0YVXLA4/ibIc9DNB5ZD0tLn tDfj95rVA2AsFQUQo+26ZedxhS+eS1c9eFvF2dnexebwvm83d0iHiF8otIXvdmv1Qj 3HaFJCuIrTlA1rqyhS6jr26CSJTkvdsfj36qbSCCkXdFN57hToEX56cyG7UPW4/QAo s+KXSm/hWLjuNrv9Ydexe4t8g8edwSIni+YnaAv4k8HQo6zIR9T2SySmKTJwPkm8m/ 0LvDe/F//pL2JhyARPuCwan60A/Z6sV8bZgU3Q4q9PgJRsSCzR4/rlt6QUCn7fkOCE 0O/+YsIFOrmXw== Received: from alan by faroe.holly.idiocy.org with local (Exim 4.97) (envelope-from ) id 1sXQYi-00000001ZvZ-2CHZ; Fri, 26 Jul 2024 20:24:56 +0100 Date: Fri, 26 Jul 2024 20:24:56 +0100 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Gerd =?UTF-8?Q?M=C3=B6llmann?= , Jones Stephen , 71912@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Thu, Jul 25, 2024 at 09:39:16AM +0200, Gerd Möllmann wrote: > Gerd Möllmann writes: > > The following patch for master addresses this at least partially. Part > of the problem is, it appears to me, is that windowDidMove is not called > when entering/exiting fullscreen mode, so that a frame's left_pos and > top_pos are not adjusted. The patch tries to fix that. I haven't found > out what to do with the frame parameters top and left. If you look at toggleFullScreen it creates a new NSWindow for switching to fullscreen, or re-uses the old non-fullscreen NSWindow when switching out of fullscreen, so the windows don't move. You can actually just call windowDidMove directly. I'd suggest doing it at the end of toggleFullScreen. -- Alan Third From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 19:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Jones Stephen , 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172202211014701 (code B ref 71912); Fri, 26 Jul 2024 19:29:02 +0000 Received: (at 71912) by debbugs.gnu.org; 26 Jul 2024 19:28:30 +0000 Received: from localhost ([127.0.0.1]:40086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQc9-0003p3-Vq for submit@debbugs.gnu.org; Fri, 26 Jul 2024 15:28:30 -0400 Received: from mail-wm1-f49.google.com ([209.85.128.49]:55702) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXQc8-0003or-DD for 71912@debbugs.gnu.org; Fri, 26 Jul 2024 15:28:29 -0400 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4279c10a40eso125935e9.3 for <71912@debbugs.gnu.org>; Fri, 26 Jul 2024 12:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722022033; x=1722626833; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xkl+7SmB5SoRehZB6ULYIwIbYIkQyRUuq3QKFX8rVIs=; b=H/YxxJl8WhSJDQlcS3ipCAq9baxszsyT4tF/AfUOZVKHqUrRl1qcQPSXtl2FaoLZet LVQzZjP53EuZcRuNaQsXmKglhU5b1kO3fIEiS+s8wrahUy7eaMgjl7eGpXV9RYhenHSk +02GIPM1o0xbHPT1L5qBGBgbiuml+UeIP3F8keZb3VQT3kro9+IcJGoijjLM12JeXV/g y8quym1OVVTDObhO0WjVea27QPn6cWDlkL0iihu3zfKdtOhj3u5W84Q2F1S4wMsrvM4u 4ugbnIxbYutVYz+N/GZmQYI2CYmOykmlnHIKEKw1JNyrWkMGXJps2o+/zSyr+kB2KV6D Lujg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722022033; x=1722626833; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Xkl+7SmB5SoRehZB6ULYIwIbYIkQyRUuq3QKFX8rVIs=; b=Cd+vtSyEfctaRGlpU3j9YcJ7Tp+O0pY+MXGJXdmIYeS7qmYmQXl2aFiUkShsA5EGgk 1roAopR9uLeyPjiVED+D2ECJYpuWtOI3oauLJa7ZhudHMRZjck879pwScWwpM0Gw6pwj DSyurTOd2MGY+Jl1eSk5JWsVFlPOl4ySyczzlR20yiV31/lMwi1XsJrBrC7utFbPIAnA pAYfcNE5Jz2w0TY67XUMhiQ2PBdH+OKtwoV3I7mmJCgpk2D8vtGNfLZsoX3DUij+ewIa RzWdu1wVqEtuBjVbqxzqQ0gr7FmOzM3PheFwRH2etrczICcBGFMXCIPG9lJmVKuAnkC4 vxDA== X-Forwarded-Encrypted: i=1; AJvYcCXclBUizfnsaMc0jdOQkrbOiwzYwqPd7PECQ3PS+pDkUCDL0VEDvznoG7P5cnHSkISSSFG8bRkMmk4+C9dkJfqhYjO8kgc= X-Gm-Message-State: AOJu0YygoRg3piIOJZdUUemVVESQIZh3j4XBIS4vLbUcPHpOYUi5UdYQ av6gGcvrfCh8SpiKchFeiqDNOAQsh1wC/I0Rnq2ihU8quS9erniKY/FaEw== X-Google-Smtp-Source: AGHT+IHNS6yHThOiJVZSE9rq6+8djoLvSYNfbGm7ZqhyiJZW5uFYO52//rHzdytTao8IBuPnrtQfbg== X-Received: by 2002:a05:600c:1da8:b0:426:6ead:5709 with SMTP id 5b1f17b1804b1-42811d8893fmr4184155e9.9.1722022033183; Fri, 26 Jul 2024 12:27:13 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a2c4.dip0.t-ipconnect.de. [79.227.162.196]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42805730e68sm89926835e9.9.2024.07.26.12.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 12:27:12 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: (Alan Third's message of "Fri, 26 Jul 2024 20:24:56 +0100") References: Date: Fri, 26 Jul 2024 21:27:12 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Alan Third writes: > On Thu, Jul 25, 2024 at 09:39:16AM +0200, Gerd M=C3=B6llmann wrote: >> Gerd M=C3=B6llmann writes: >>=20 >> The following patch for master addresses this at least partially. Part >> of the problem is, it appears to me, is that windowDidMove is not called >> when entering/exiting fullscreen mode, so that a frame's left_pos and >> top_pos are not adjusted. The patch tries to fix that. I haven't found >> out what to do with the frame parameters top and left. > > If you look at toggleFullScreen it creates a new NSWindow for > switching to fullscreen, or re-uses the old non-fullscreen NSWindow > when switching out of fullscreen, so the windows don't move. > > You can actually just call windowDidMove directly. I'd suggest doing > it at the end of toggleFullScreen. Thanks, I'll give that a try tomorrow. From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2024 20:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third Cc: Jones Stephen , 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172202602020808 (code B ref 71912); Fri, 26 Jul 2024 20:34:01 +0000 Received: (at 71912) by debbugs.gnu.org; 26 Jul 2024 20:33:40 +0000 Received: from localhost ([127.0.0.1]:40124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXRdE-0005PY-CG for submit@debbugs.gnu.org; Fri, 26 Jul 2024 16:33:40 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:57788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXRdB-0005PL-QT for 71912@debbugs.gnu.org; Fri, 26 Jul 2024 16:33:38 -0400 Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a7a9a7af0d0so259053366b.3 for <71912@debbugs.gnu.org>; Fri, 26 Jul 2024 13:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722025942; x=1722630742; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Q8tysr/Hvl9PMtXifsTWIGkqXGyHIaW/gkj8Ud3CZ3g=; b=XcgwhzXhQpCzvIX0yXZdEFR1i4OZjXx74D2hMtEG+AMd7n+bJY27pSudjAros4TH0r Ur27RHjypyVRj2HAlw+t8zc4gpBHD2a7tlpUY6OxRNyb07UDO7vTn5p4hbK5mRS7egco y/o/4xUwmTDNwWzNCQery1Bs2LvZ5W1keMTcWomTaNq+gCY5mbfxMm4Dv66Inm5Vs1KE OJtxFfiZAlaL4I/ypzSeIp062+oRm6Cn0Cor5jxwSSREjO3kDghfddJa6ZtnJcC/5Vlz iRjgrrOJstVd4p/BrMhx0AbuHjCNaAG0LapEv8VHZcH0ny1l9n0EEHM04CKqD1c5osss TXeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722025942; x=1722630742; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Q8tysr/Hvl9PMtXifsTWIGkqXGyHIaW/gkj8Ud3CZ3g=; b=Ghc1gzr+PRrkb/IoIUFICEhk6HqUalr4IP+e/4IKmqjLWZzVHoLY8TO5i2C0NxBOMH Y9HZK1+y2kWAmKVxYpL3jDTVEaKKlOQOjIXj4hsoo9wcAb5laIDQsFP0zgrixrb+Xh/z xRHojTxIgzYo8nGZm4rPYACj5RVTzeXQfwB8f4inZYZCmFYuKDvPKLLTf8QEY+sc8rGO CIJzM6TDA4L9z734nq+ka14TEkBv93s9bM0B1siX5llpOTosn8rB+V71pltVzs2wZLDf lgTOd7DWnFeP/6g4ZQZr9hY/53d2iGSSCK6uIOJW1FjMUZ9Ppf7qXreBubUCQF9wDea+ xvtw== X-Forwarded-Encrypted: i=1; AJvYcCUWG1kjA1TK7DmZS99x/gspW1JCQXqEw8o8WTk2ZRqb56qK2xI73iuUxTyNBo6tdLP9SFe4xEniitwgxa75YcWUKZ7Qjro= X-Gm-Message-State: AOJu0YwBrj8rvqqMVYgdoZWVVyirWfs+EnO/xKKCTYPAYYsYH6GJceSK Dn7bCAvk2DO5FsJvVquug/qYSeo+C1zYiKJRDq6VLJRKS9mWeWYkUXWYWg== X-Google-Smtp-Source: AGHT+IHnYoRy7wIXipJB3QkGMtcPvqy7+pwIDA1Yfh5VyQkSn8EeFZcMatlKfyRraQtBC34JbP112g== X-Received: by 2002:a17:907:c48e:b0:a77:da14:8409 with SMTP id a640c23a62f3a-a7d40135360mr40325166b.48.1722025942161; Fri, 26 Jul 2024 13:32:22 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a2c4.dip0.t-ipconnect.de. [79.227.162.196]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acab233c0sm210822266b.44.2024.07.26.13.32.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 13:32:21 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Fri, 26 Jul 2024 21:27:12 +0200") References: Date: Fri, 26 Jul 2024 22:32:20 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > Alan Third writes: > >> On Thu, Jul 25, 2024 at 09:39:16AM +0200, Gerd M=C3=B6llmann wrote: >>> Gerd M=C3=B6llmann writes: >>>=20 >>> The following patch for master addresses this at least partially. Part >>> of the problem is, it appears to me, is that windowDidMove is not called >>> when entering/exiting fullscreen mode, so that a frame's left_pos and >>> top_pos are not adjusted. The patch tries to fix that. I haven't found >>> out what to do with the frame parameters top and left. >> >> If you look at toggleFullScreen it creates a new NSWindow for >> switching to fullscreen, or re-uses the old non-fullscreen NSWindow >> when switching out of fullscreen, so the windows don't move. >> >> You can actually just call windowDidMove directly. I'd suggest doing >> it at the end of toggleFullScreen. > > Thanks, I'll give that a try tomorrow. Tried it today :-). And it looks like toggleFullScreen is somehow not being used. When I press the green button to go into fullscreen, I land in windowDidEnterFullscreen, but it's called directly from AppKit. Similar for exiting fullscreen. * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D breakpoint = 8.1 frame #0: 0x0000000100365e54 emacs`-[EmacsView windowDidEnterFullScreen= ](self=3D0x000000014860f930, _cmd=3D"windowDidEnterFullScreen") at nsterm.m= :8350:4 frame #1: 0x0000000100365e30 emacs`-[EmacsView windowDidEnterFullScreen= :](self=3D0x000000014860f930, _cmd=3D"windowDidEnterFullScreen:", notificat= ion=3D@"NSWindowDidEnterFullScreenNotification") at nsterm.m:8344:3 frame #2: 0x0000000191b4f144 CoreFoundation`__CFNOTIFICATIONCENTER_IS_CAL= LING_OUT_TO_AN_OBSERVER__ + 148 frame #3: 0x0000000191be33d8 CoreFoundation`___CFXRegistrationPost_block_= invoke + 88 frame #4: 0x0000000191be3320 CoreFoundation`_CFXRegistrationPost + 440 frame #5: 0x0000000191b1d678 CoreFoundation`_CFXNotificationPost + 768 frame #6: 0x0000000192c3a4e4 Foundation`-[NSNotificationCenter postNotifi= cationName:object:userInfo:] + 88 frame #7: 0x00000001961742b8 AppKit`-[NSWindow(NSFullScreen) _didEnterFul= lScreen] + 92 frame #8: 0x0000000195f568d8 AppKit`-[_NSEnterFullScreenTransitionControl= ler doAfterEnterFullScreen] + 208 frame #9: 0x0000000195f57710 AppKit`-[_NSEnterFullScreenTransitionControl= ler _performFinalTransitionCleanup] + 56 frame #10: 0x0000000195f5767c AppKit`__68-[_NSEnterFullScreenTransitionCo= ntroller _startFullScreenTransition]_block_invoke + 236 frame #11: 0x00000001918c8750 libdispatch.dylib`_dispatch_call_block_and_= release + 32 frame #12: 0x00000001918ca3e8 libdispatch.dylib`_dispatch_client_callout = + 20 frame #13: 0x00000001918d8bb8 libdispatch.dylib`_dispatch_main_queue_drai= n + 988 frame #14: 0x00000001918d87cc libdispatch.dylib`_dispatch_main_queue_call= back_4CF + 44 frame #15: 0x0000000191b9bad4 CoreFoundation`__CFRUNLOOP_IS_SERVICING_THE= _MAIN_DISPATCH_QUEUE__ + 16 frame #16: 0x0000000191b59258 CoreFoundation`__CFRunLoopRun + 1996 frame #17: 0x0000000191b58434 CoreFoundation`CFRunLoopRunSpecific + 608 frame #18: 0x000000019c2fc19c HIToolbox`RunCurrentEventLoopInMode + 292 frame #19: 0x000000019c2fbfd8 HIToolbox`ReceiveNextEventCommon + 648 frame #20: 0x000000019c2fbd30 HIToolbox`_BlockUntilNextEventMatchingListI= nModeWithFilter + 76 frame #21: 0x00000001953b7d68 AppKit`_DPSNextEvent + 660 frame #22: 0x0000000195bad808 AppKit`-[NSApplication(NSEventRouting) _nex= tEventMatchingEventMask:untilDate:inMode:dequeue:] + 700 frame #23: 0x00000001953ab09c AppKit`-[NSApplication run] + 476 frame #24: 0x000000010035b4bc emacs`-[EmacsApp run](self=3D0x0000000149= 005bf0, _cmd=3D"run") at nsterm.m:5952:7 frame #25: 0x0000000100359b38 emacs`ns_select_1(nfds=3D0, readfds=3D0x0= 00000016fdfd24c, writefds=3D0x000000016fdfd1cc, exceptfds=3D0x0000000000000= 000, timeout=3D0x000000016fdfd1a0, sigmask=3D0x0000000000000000, run_loop_o= nly=3DNO) at nsterm.m:4964:3 frame #26: 0x00000001003596f8 emacs`ns_select(nfds=3D0, readfds=3D0x000= 000016fdfd24c, writefds=3D0x000000016fdfd1cc, exceptfds=3D0x000000000000000= 0, timeout=3D0x000000016fdfd1a0, sigmask=3D0x0000000000000000) at nsterm.m:= 5016:10 frame #27: 0x00000001002cc594 emacs`wait_reading_process_output(time_li= mit=3D0, nsecs=3D0, read_kbd=3D-1, do_display=3Dtrue, wait_for_cell=3D(stru= ct Lisp_Symbol *) $0 =3D 0x0000000100a840d0, wait_proc=3D0x0000000000000000= , just_wait_proc=3D0) at process.c:5748:18 From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Jul 2024 04:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jones Stephen Cc: Alan Third , 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172231247830159 (code B ref 71912); Tue, 30 Jul 2024 04:08:02 +0000 Received: (at 71912) by debbugs.gnu.org; 30 Jul 2024 04:07:58 +0000 Received: from localhost ([127.0.0.1]:46546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYe9W-0007qL-5B for submit@debbugs.gnu.org; Tue, 30 Jul 2024 00:07:58 -0400 Received: from mail-lf1-f54.google.com ([209.85.167.54]:52600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYe9T-0007q6-Gh for 71912@debbugs.gnu.org; Tue, 30 Jul 2024 00:07:55 -0400 Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-52efbb55d24so6103329e87.1 for <71912@debbugs.gnu.org>; Mon, 29 Jul 2024 21:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722312395; x=1722917195; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ghx5Gjidr8QPhq5H9HMjguQ4VGbf9lsHVE/5XYHkZus=; b=Eli0OONY6yv6hcFxI1UA3ARatKLfYAEwWYFfC5UZS+cfhWpQljFDaqrW6Zyw762HYv hnq3RNNF1zVVFZZ9VqipmkwbRC+XRZPvYix0OXrXmU1ARI9fyymzgPgvhUjJp3wTh2Iu 3LtxCT3sA/Bc0qUIZPFworx4V/i4Ug/VOCUvhPv1BJkDMnbOUBYOl42Zgn2UKY9/mqzw S7koSEXyQBYraF4bUWSpQ1yKftEkYOsyYyJprA5DCCxMRnvHyTzMh586XZqGw2OYxkCJ rKXsJWQCKUTrFCsnT4U/AsPU7GLc9wd1eXAfGb17XDY/+3h9tBfCZ+GMfcEGZNVH7a6G qiIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722312395; x=1722917195; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Ghx5Gjidr8QPhq5H9HMjguQ4VGbf9lsHVE/5XYHkZus=; b=Rkn6K4yqYQ2FIHc+9KjyTJDvqxkzphOQ1bcrycqPfeL+HsJhj139JsRLYzlYdXZeNY 6qxjYXi0DbSFhWe659QaO6VkG3tEwT5U9iE/DEuAVZEUXL6C7XtTdpPsPYZox0UIunsh V9HXx4lhViqGAaBGlfp9U8nN1eTET3B9OY3l+Cz+qLjvS9ernVWSnPgxosHM+w/mNFY1 H7vJ3p5bI8t3ipeveiWpPvlyuQRiCkYZ9HH3U3mu0yuflX4+Lot8cV8k8PEqZ4pxWnrX Z3E868z1mFuSiUR62JDDW5ihQChYq2s3LEaYGhl3sFQ2V9JqiwswHhspmiL7Bgpy0gtB kRpA== X-Forwarded-Encrypted: i=1; AJvYcCWmJqsqSDbPEAfAeNRWlAPsAruxRJuvrhtkC0kHmT9mskfEHAv5/bmh5KS2zUggiLJOVnhdC/2ztC6WJP5kA7eLXwrlLHQ= X-Gm-Message-State: AOJu0YyxqP86S6f9qFYPaLcm9nVJzJz+PW35O/ucY3EoeRsoIhf7w9Jt fGlDpCt3hKXpc70C1/JJyX+V6SENxOuq2Gu/nqsgyxiDT16B6QRwvJJ8uA== X-Google-Smtp-Source: AGHT+IFqafCnaoQR71oxje1ERw+6WuQM4FUlO8W7M36i0OMA4XA0fStdnhtBWnS7VDbd7qvXD49iqg== X-Received: by 2002:a05:6512:210e:b0:52c:deb9:904b with SMTP id 2adb3069b0e04-5309b2cabddmr6694746e87.38.1722312395057; Mon, 29 Jul 2024 21:06:35 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a334.dip0.t-ipconnect.de. [79.227.163.52]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad426aasm585013866b.105.2024.07.29.21.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 21:06:34 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 25 Jul 2024 09:39:16 +0200") References: Date: Tue, 30 Jul 2024 06:06:33 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Gerd M=C3=B6llmann writes: > The following patch for master addresses this at least partially. Part > of the problem is, it appears to me, is that windowDidMove is not called > when entering/exiting fullscreen mode, so that a frame's left_pos and > top_pos are not adjusted. The patch tries to fix that. I haven't found > out what to do with the frame parameters top and left. I've pushed this to emacs-30. Frame parameters are handled automatically, and it also fixes weird non-system tooltip placement on fullscreen frames where the tooltip opens in another workspace. Closing. From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 30 00:08:09 2024 Received: (at control) by debbugs.gnu.org; 30 Jul 2024 04:08:09 +0000 Received: from localhost ([127.0.0.1]:46550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYe9h-0007r8-GT for submit@debbugs.gnu.org; Tue, 30 Jul 2024 00:08:09 -0400 Received: from mail-lj1-f170.google.com ([209.85.208.170]:53384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sYe9f-0007qh-SA for control@debbugs.gnu.org; Tue, 30 Jul 2024 00:08:08 -0400 Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2f029e9c9cfso66033761fa.2 for ; Mon, 29 Jul 2024 21:07:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722312408; x=1722917208; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:subject:from:to:message-id :date:from:to:cc:subject:date:message-id:reply-to; bh=8aEdCbnOwHvnypqxsQ/puu/0ruMNiQgBV4RKth6R7XU=; b=BCE4xv5sAE8AyLLT6T64DeC1cpc3d/QGNf2o4VP7EHdEQhXQjSTyfyIIbIJrA7rtqg CHEBBjNM92HEmt5Vb4JipsuKcDm9ZQX76jaAPWqVjWglAPItJdK4yK5eYXPyzDZBKHM9 J1f0m5B8L5a7D2Dq13WZZ6LJ9/HP7Y2h4HxtdAlJ15r6uQQijXA5zr6044YBT1N1Q1ir QI/o5DPHkA9lMvJU8VcZmq+z61FvZz1TTspwFHujd+BwhOl1k5XAlmSO3ViUvD2u5uWR f0Bn/c50h6MAMkuqKdgl5CVZ96PL+Gcy/0g1BrnWgfeJwqt0ee2vwR0fAPL2nqOrmgye l6dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722312408; x=1722917208; h=content-transfer-encoding:mime-version:subject:from:to:message-id :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8aEdCbnOwHvnypqxsQ/puu/0ruMNiQgBV4RKth6R7XU=; b=v1l6Nr3v5NzpoC6+dlz9K8xvpsazjlIOxwOyIBIBuM5tFvuEkB9VTujaoCmCAS5eVo 1cP2Edn1b2RrFyIT6Ox/2j0n0CobdLwM1yhrmXbOA0gqOToxssMAszpU41zdj6PBlGUe 8UilqLr6XbPIyzo3RRzy81sVOKmMhGaRCCCjZTm/odAsnqv/QAFiUFMb/UEPUSwgmulD cHZgtFYwbmyPomK81smfcQouOjMNUXMnDuRNfmmN5QkU0orQKfH3WaW+xczeL3ssQW9B UZBKCkopGDqNSGbQ9yG+A4DpxomGR7TX/GFypv7dhOe5iVV+J1kvfJqhpc2mJEtv20wz tPgw== X-Gm-Message-State: AOJu0Yzj4KuOSf+kiSeC+0+xxaoLFkw0Zot57OWjsfw9rgM/xAB1CehA ifR0JwhTdd4zVV4FG29xlAznQy3Whw++Idz6p1E3p0IhmmjF08wuUT4JuQ== X-Google-Smtp-Source: AGHT+IHb4B14c7IYifhBvjnFSzdm3e5jd5CXgISogQaRXwA/RmxTIuLDcagutMzsnIjyXQrT2TRQ4A== X-Received: by 2002:a2e:9f43:0:b0:2ef:1ba9:dc5a with SMTP id 38308e7fff4ca-2f12ee29a87mr84496191fa.28.1722312407396; Mon, 29 Jul 2024 21:06:47 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a334.dip0.t-ipconnect.de. [79.227.163.52]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5ac631b038asm6616081a12.14.2024.07.29.21.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 21:06:47 -0700 (PDT) Date: Tue, 30 Jul 2024 06:06:45 +0200 Message-Id: To: control@debbugs.gnu.org From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Subject: control message for bug #71912 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 3.0 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 71912 30.1 quit Content analysis details: (3.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gerd.moellmann[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.170 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.170 listed in list.dnswl.org] 3.0 MALFORMED_FREEMAIL Bad headers on message from free email service X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 71912 30.1 quit Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.170 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.170 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (gerd.moellmann[at]gmail.com) 3.0 MALFORMED_FREEMAIL Bad headers on message from free email service -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager close 71912 30.1 quit From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: [Gerd =?UTF-8?Q?M=C3=B6llmann]?= Re: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode References: In-Reply-To: Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Aug 2024 06:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71912@debbugs.gnu.org Cc: Jones Stephen Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.17233590548388 (code B ref 71912); Sun, 11 Aug 2024 06:51:02 +0000 Received: (at 71912) by debbugs.gnu.org; 11 Aug 2024 06:50:54 +0000 Received: from localhost ([127.0.0.1]:40615 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd2Pl-0002BD-If for submit@debbugs.gnu.org; Sun, 11 Aug 2024 02:50:54 -0400 Received: from mail-ej1-f43.google.com ([209.85.218.43]:46257) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd2Pj-0002Az-JG for 71912@debbugs.gnu.org; Sun, 11 Aug 2024 02:50:52 -0400 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a6265d3ba8fso283809266b.0 for <71912@debbugs.gnu.org>; Sat, 10 Aug 2024 23:50:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723358955; x=1723963755; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=ZVxGJqFLAnfC0L5IIgRTOKL9Fy/CjSj/T8bajrTItrk=; b=CkSrrKMYHNfMP/sD9t9KfXGtEXq9GrPVli8ugR9MbCudyJFrUpapsgzFeX5GOIiXMf /BFhSqe6AwCW3Yu8nnjyHoUeOpmR2cT/CAOZ+AAKSfks/QwAHeSoT2sGwQVTTG+NvMhT HaVkeWhq4NHkFernOdq0SvAY4g3yiuarU3JbalSV693zC2hY86u021hHZoFwB3HFDaGz jsx2a9txDCzcIk0UF86kODo6xeaXnd64t7I4BQtgiJ2IGmgkTkBmA9OBRLHXMwdzc5JK Cn9UFBtKqX4rBUAJ7p1JJO6nuw91HubrwRGfNOU544xOGrEMbnffQ9axdTusxvRq5hpx sF9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723358955; x=1723963755; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZVxGJqFLAnfC0L5IIgRTOKL9Fy/CjSj/T8bajrTItrk=; b=KG37SkLbBjn7SA2IBDoRQDRcpNmGe/967m1Vx4L/0jXWOm7+6XmcUx+DWuv+EieIg9 b7d6RNlw/AnU9KmnjqTIdyJVOtylLP7Rcq6620V68Lh7/MFuTgG3dJJdg4gz92SCxqDa vFqa9q6oGdidlLDOYVQWHu69KBeTyNDRN17/Guy1of7rQezecdNXTy3fs3EgBp7vXS1V 137rXlCH2WLoQxMYR8JpWvrdZKS6lExP6gh7RfWHNfRbVyuXlgRBzfFafRGjz2Y6rjc8 vjzlFknrzsD/N6C3w/sBUzIZ7Jos6iHT8c3uZh2S5F5LlKhksQ7EOdtZLRPj3cf+k4Ch UEzA== X-Gm-Message-State: AOJu0Ywd5CuJ9ymkYsvyQqIki3Up9PORL6RwVs/iy5hc6PNwwNoJAC++ 2IS5pSyP/1G2lTOo3c2ZQwfg8+aFJBoJe3ZygB7bTtrLGAI3pE4oD2qP1A== X-Google-Smtp-Source: AGHT+IH1s7DLlW9PjKqF+z5klC1xgTy3wAMoDoGIS9GGwppVgEcsm7zyaGOtTpraXq+XKQnuefO5cQ== X-Received: by 2002:a17:907:7f17:b0:a72:41e7:fef4 with SMTP id a640c23a62f3a-a80aa67b78cmr414488566b.68.1723358955192; Sat, 10 Aug 2024 23:49:15 -0700 (PDT) Received: from pro2.fritz.box (pd9e36a91.dip0.t-ipconnect.de. [217.227.106.145]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a80bb0e124bsm125569066b.61.2024.08.10.23.49.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Aug 2024 23:49:14 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Date: Sun, 11 Aug 2024 08:49:13 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Forwarded to bug list to keep it informed. -------------------- Start of forwarded message -------------------- From: Gerd M=C3=B6llmann To: Jones Stephen Subject: Re: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Date: Sun, 11 Aug 2024 08:41:49 +0200 --=-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Jones Stephen writes: > Thank you for the recent patch. I wanted to let you know that after > using the latest version of Emacs, I found that the fullscreen issue > has been resolved, which is great news=E2=80=94thank you for that! > > However, I=E2=80=99m still encountering an issue with the frame position = after > the system wakes from sleep. Here=E2=80=99s how to reproduce it: > > 1. Open Emacs. > 2. Use a window management tool like Rectangle to position Emacs on one s= ide of the screen. > 3. Put macOS to sleep. > 4. Wait for a while, approximately 30 minutes. > 5. Wake up macOS, enter the login password, and then focus back on Emacs. > > At this point, the frame position seems to be incorrect. I can reproduce this here. > Interestingly, when I use Rectangle to move Emacs to the other side of > the screen, the position issue is resolved. > > I believe this could be related to missing a system wake notification. > Perhaps adding something like: > > ```swift > NotificationCenter.default.addObserver( > self, > selector: #selector(systemDidWake), > name: NSWorkspace.didWakeNotification, > object: nil > ) > ``` > > and calling `adjustEmacsFrameRect` in the callback could address this > issue. Alternatively, calling `adjustEmacsFrameRect` whenever > `windowDidBecomeKey` is triggered might also work. > Indeed, that seems to work, although I find it strage that something like that is necessary. But what do I know. Could you please try the attached patch? --==-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-macOS-Wrong-frame-rectangle-after-wake-bug-71912.patch > From 1e095fd07bf91cdccf4fe1ecdbcdd9855773e787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= Date: Sun, 11 Aug 2024 08:35:23 +0200 Subject: [PATCH] macOS: Wrong frame rectangle after wake (bug#71912) * src/nsterm.h ([EmacsView workspaceDidWake:]: New method. * src/nsterm.m ([EmacsView dealloc]) ([EmacsView initFrameFromEmacs:]): Register and deregister view as observer for NSWorkspaceDidWakeNotification. --- src/nsterm.h | 1 + src/nsterm.m | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/nsterm.h b/src/nsterm.h index 6c67653705e..0833745616e 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -523,6 +523,7 @@ #define NSTRACE_UNSILENCE() /* Non-notification versions of NSView methods. Used for direct calls. */ - (void)adjustEmacsFrameRect; +- (void)workspaceDidWake: (NSNotification *) notification; - (void)windowWillEnterFullScreen; - (void)windowDidEnterFullScreen; - (void)windowWillExitFullScreen; diff --git a/src/nsterm.m b/src/nsterm.m index 905707dace4..b60c38b742a 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -6689,6 +6689,13 @@ - (void)dealloc name:NSViewFrameDidChangeNotification object:nil]; +#ifdef NS_IMPL_COCOA + [[[NSWorkspace sharedWorkspace] notificationCenter] + removeObserver: self + name: NSWorkspaceDidWakeNotification + object: nil]; +#endif + if (fs_state == FULLSCREEN_BOTH) [nonfs_window release]; [super dealloc]; @@ -8039,6 +8046,11 @@ - (BOOL)isOpaque return NO; } +- (void)workspaceDidWake: (NSNotification *) notification +{ + if (emacsframe) + [self adjustEmacsFrameRect]; +} - (instancetype) initFrameFromEmacs: (struct frame *)f { @@ -8051,6 +8063,15 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f fs_state = FULLSCREEN_NONE; fs_before_fs = next_maximized = -1; +#ifdef NS_IMPL_COCOA + /* Wrong frame rectangle after wake (bug#71912). */ + [[[NSWorkspace sharedWorkspace] notificationCenter] + addObserver: self + selector: @selector (workspaceDidWake:) + name: NSWorkspaceDidWakeNotification + object: nil]; +#endif + fs_is_native = NO; #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070 #if MAC_OS_X_VERSION_MIN_REQUIRED < 1070 -- 2.46.0 --==-=-=-- --=-=-= Content-Type: text/plain -------------------- End of forwarded message -------------------- --=-=-=-- From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: [Gerd =?UTF-8?Q?M=C3=B6llmann]?= Re: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Aug 2024 11:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jones Stephen Cc: 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.17233756064118 (code B ref 71912); Sun, 11 Aug 2024 11:27:02 +0000 Received: (at 71912) by debbugs.gnu.org; 11 Aug 2024 11:26:46 +0000 Received: from localhost ([127.0.0.1]:40853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd6ik-00014M-CP for submit@debbugs.gnu.org; Sun, 11 Aug 2024 07:26:46 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:50537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd6ih-000146-Md for 71912@debbugs.gnu.org; Sun, 11 Aug 2024 07:26:44 -0400 Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3683f56b9bdso2283249f8f.1 for <71912@debbugs.gnu.org>; Sun, 11 Aug 2024 04:26:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723375507; x=1723980307; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=v8Zmb9LqW7On6fDRSDifGrRu2rbn5TJu3eGyUbI2bww=; b=cUTGEo9XnWh21VqlwN6pdf/1Fn+bH7qvT5e6bCOzwvLjdlS/G3DSgV47+UK7oxRW1b ShfnvXk1Rvwq3OnsoOGvQeICi52h3xTM6R/Eqgmb+B3/3hGlwa0yEdph1vJV0GVhD9G9 jhnjPAQv+QvKH973R1qCdUsAnyXnbiCVXpd+ZZFeELkSL69PHrefKVLppyJoGgjmesZ9 DPFwAlLXDIrhpass7al3pel4zXWHO/y3GI/81G4U2zmzmDXZxX9MXTAY9+KLVvnP9/18 plukzejctZLr+ftGQ+YDP8B8shABkCt8R92Qma30NUB19Yksxs+SQTsFDi62vQftTkPM LiGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723375507; x=1723980307; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v8Zmb9LqW7On6fDRSDifGrRu2rbn5TJu3eGyUbI2bww=; b=AdbW7U5S8EO85GvyvnfAh2niJGf+zuBZZholtiu7a+sVREbK71dxpweeU7l2UTZkTl ldtrq3ogdS7CW1eg+mQiM/W8TTuavbXr6kmgD79J/rix/SLs3wIOD6eReUKx+8qoYXg9 Is84z8JEzC8kpnfOPdy+LLToLCzXJY0Rsz4OVhv9VWjcjxizExVAAM3CW9WO4kgpubZF GXDUECkOVfIZ52alLj+mBt+2aaNRLx5h4buFPJpfyJ5hDaB/ZTkBWmnJjxcw+6+W45a6 C+4Cqa8BH5VIhlmEHfWNW48Y9gHjiH5jrJ0pANEndE2gHQf4tp3gKXrNXvkB6atn9pkT 3GKA== X-Gm-Message-State: AOJu0YwgyRgXNQZV6giSc5xyKDdLxSJl5+9MLE6lgB7mlrJzXEXB8+UB oa/CRELAxwgb5QXu35Fe8VOgYQ+fuRVacfvWek5zImbsOf6WlqyXQKROHA== X-Google-Smtp-Source: AGHT+IGCK+uxdlrXaUwABFJc6L9sxqIWcqBeyYy4Ooxno2tZVdhT7m229bw5rqmDW8ndpMawmVzedA== X-Received: by 2002:a05:6000:136f:b0:368:48e6:5059 with SMTP id ffacd0b85a97d-36d60063f3fmr3908443f8f.32.1723375506505; Sun, 11 Aug 2024 04:25:06 -0700 (PDT) Received: from pro2.fritz.box (pd9e36a91.dip0.t-ipconnect.de. [217.227.106.145]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4ebd372fsm4662118f8f.108.2024.08.11.04.25.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 04:25:05 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: (Jones Stephen's message of "Sun, 11 Aug 2024 18:39:53 +0800") References: Date: Sun, 11 Aug 2024 13:25:04 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Jones Stephen writes: > Thank you for the patch. I=E2=80=99ve tested it, and it does help, but I > noticed there=E2=80=99s still a slight issue. > > Here=E2=80=99s what I found: if I leave my Mac idle for a while and it en= ters > 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? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-macOS-Wrong-frame-rectangle-after-wake-bug-71912.patch >From 44fabe5f1267fc0498e76173987ab4801c732d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerd=20M=C3=B6llmann?= Date: Sun, 11 Aug 2024 13:22:45 +0200 Subject: [PATCH] macOS: Wrong frame rectangle after wake (bug#71912) * src/nsterm.m ([EmacsView windowDidBecomeKey]): Call adjustEmacsFrameRect. --- src/nsterm.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nsterm.m b/src/nsterm.m index 905707dace4..97b829d0e4c 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -7968,6 +7968,7 @@ - (void)windowDidBecomeKey /* for direct calls */ dpyinfo->ns_focus_frame = emacsframe; ns_frame_rehighlight (emacsframe); + [self adjustEmacsFrameRect]; event.kind = FOCUS_IN_EVENT; XSETFRAME (event.frame_or_window, emacsframe); -- 2.46.0 --=-=-=-- From unknown Tue Aug 19 23:12:57 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71912: [Gerd =?UTF-8?Q?M=C3=B6llmann]?= Re: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 12 Aug 2024 03:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71912 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jones Stephen Cc: 71912@debbugs.gnu.org Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.17234327164874 (code B ref 71912); Mon, 12 Aug 2024 03:19:01 +0000 Received: (at 71912) by debbugs.gnu.org; 12 Aug 2024 03:18:36 +0000 Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdLZs-0001GX-BW for submit@debbugs.gnu.org; Sun, 11 Aug 2024 23:18:36 -0400 Received: from mail-ed1-f51.google.com ([209.85.208.51]:58658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdLZq-0001GH-5M for 71912@debbugs.gnu.org; Sun, 11 Aug 2024 23:18:34 -0400 Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5ba43b433beso3961140a12.1 for <71912@debbugs.gnu.org>; Sun, 11 Aug 2024 20:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723432616; x=1724037416; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9fpaBSsQ9mo4pxbkXOs8R0swCHP1c/zfORGYyIllXdk=; b=ixpIWqFROao9reHsIcIDpsZzP0lSuk01b8AvaSC8Hr71et66fQRtTykvwTI1R9R3jX 57FC0bd0jlQvDKxX0Hhs7DGwEPsPH5I+f3V1B7TMwOvKQ6Ki9DPG1E8trQU80LF6y/kN +X1dPXmi5iyuTfwbcuw1SGrHTCU+237ZByAO0rePj47HVNWRruuBwgokQjH1wbTWR7IT mEbJm6gYSH6PXRQMT4UMLiBPPi0UonVLe6gbs6mbNULklsKWH8T9rZ6TdDuX0XzxA2+5 GKKhmXvKrr4Q0nuXlhTS0zEPQ8d264h4wraaCEPbHbOBORSz4DZ/nn+B17zSSAcxOLLV HNnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723432616; x=1724037416; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=9fpaBSsQ9mo4pxbkXOs8R0swCHP1c/zfORGYyIllXdk=; b=ILjHEY8OKkn/XEmemgpB1IYmTxxvkWOSmsl6OYO+HhN3fxCFAiuTkj1FGKlNzr0EkR Aa226nuOXClKzGT18kml7pB8BsU2+k/sOUW/A6X3HDmE64Y3sjKUO25q0hktvaDjfhc3 ZcXCQc4SfOR3hN80QvKD2PjLwwJFCwrbtHVcqb49G/0Ms5l5bkhatoU3LKQcDVdy0MYO 3zhC8LO9WUVLHBzCC/CxfPc39DFjy4occcdDAA7++lbqB5dD5kDw0gfXYrIWC0pDYVHB nZSmXUQUeFLQ1wkAfm8p/Br8WfF68oI+08STk0AjajgGS/eoxZGTuryFlTV/uxrQOc1a IWDQ== X-Gm-Message-State: AOJu0YyxrkH/AJi/QWiYmu4uTkxhwWDs0JJHwAZeJ7RdHfTBwbdlbipF 6t3z1jnBdUVqUVPFKFOCx0qHHrlGpfYWonRnPUujrjIS0Imy58+46Oar3Q== X-Google-Smtp-Source: AGHT+IHyCYgxA+alh5LZMscLqQAiqcRfxVL5io1H3fUVWz6l2mZX0Ixisr+DzHDBg17kGFaWJo3jKQ== X-Received: by 2002:a05:6402:5214:b0:5af:758a:6934 with SMTP id 4fb4d7f45d1cf-5bd0a3cfd49mr6273691a12.0.1723432615758; Sun, 11 Aug 2024 20:16:55 -0700 (PDT) Received: from pro2.fritz.box (p4fe3a938.dip0.t-ipconnect.de. [79.227.169.56]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5bd187f33cfsm1741791a12.5.2024.08.11.20.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 20:16:55 -0700 (PDT) From: Gerd =?UTF-8?Q?M=C3=B6llmann?= In-Reply-To: (Jones Stephen's message of "Mon, 12 Aug 2024 10:59:07 +0800") References: Date: Mon, 12 Aug 2024 05:16:54 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jones Stephen writes: > Yes, I can confirm that the attached patch resolves the issue. Pushed to emacs-30. Thanks for testing! > > Gerd M=C3=B6llmann =E4=BA=8E2024=E5=B9=B48=E6= =9C=8811=E6=97=A5=E5=91=A8=E6=97=A5 19:25=E5=86=99=E9=81=93=EF=BC=9A > > Jones Stephen writes: > > > Thank you for the patch. I=E2=80=99ve tested it, and it does help, but= I > > noticed there=E2=80=99s still a slight issue. > > > > Here=E2=80=99s 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?