From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs 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 Date: Mon, 12 Aug 2024 05:16:54 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40494"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 71912@debbugs.gnu.org To: Jones Stephen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 12 05:18:54 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 1sdLaA-000ANv-12 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 12 Aug 2024 05:18:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdLZn-0005nA-JP; Sun, 11 Aug 2024 23:18:31 -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 1sdLZm-0005n2-NJ for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2024 23:18:30 -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 1sdLZm-0006LO-E0 for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2024 23:18:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=9fpaBSsQ9mo4pxbkXOs8R0swCHP1c/zfORGYyIllXdk=; b=Rk9Y9rYUbebCPj9e2KdK/QX4xrSKi96wq4Qy/g8JCYEbXfnm4l9I+AH8xBnxfeClCN3F5sUyZn/7LSfuaME91LHNzSCPwfGekamGQJNMdUDCnzlSjQfqcmCnk6GyP10A+wXu6l5AcilsPOAyki181bT9a744MJyDfhkD9m7pY+DoKiYOIIt4eB/NquyOv9AymbNACoSSxATFZxRXMB1n0gB4GRIjIoWImyMazUSnTceEO/t7nNFK3sjpvnLLrdABcXn5lPR/keLThh/qGkXZZHXSQyW0lPc9Vwq84JCff2DjzaKaTbG/Fs9kZb5w5anTTmOkxYaIIeiDgf6wpcjROg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdLaH-0001HR-KK for bug-gnu-emacs@gnu.org; Sun, 11 Aug 2024 23:19:01 -0400 X-Loop: help-debbugs@gnu.org 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 Original-Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.17234327164874 (code B ref 71912); Mon, 12 Aug 2024 03:19:01 +0000 Original-Received: (at 71912) by debbugs.gnu.org; 12 Aug 2024 03:18:36 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: (Jones Stephen's message of "Mon, 12 Aug 2024 10:59:07 +0800") 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:290036 Archived-At: 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?