From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jones Stephen Newsgroups: gmane.emacs.bugs Subject: bug#71912: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Date: Wed, 3 Jul 2024 10:38:16 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a34a77061c4eb9c8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29925"; mail-complaints-to="usenet@ciao.gmane.io" To: 71912@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 03 09:37:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sOuYM-0007cw-R4 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Jul 2024 09:37:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOuY4-0001ht-8o; Wed, 03 Jul 2024 03:37:04 -0400 Original-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 1sOuY0-0001h4-PS for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 03:37:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOuY0-0000o9-H3 for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 03:37:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sOuY2-0002J0-3C for bug-gnu-emacs@gnu.org; Wed, 03 Jul 2024 03:37:02 -0400 X-Loop: help-debbugs@gnu.org 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-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17199921968815 (code B ref -1); Wed, 03 Jul 2024 07:37:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jul 2024 07:36:36 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:288310 Archived-At: --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--