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: 30.0.50; Inaccurate window-absolute-pixel-position Values on macOS After Sleep and During Fullscreen Mode Date: Fri, 26 Jul 2024 21:27:12 +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="38626"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jones Stephen , 71912@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 26 21:29:09 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 1sXQcl-0009p2-Ru for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Jul 2024 21:29:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXQcY-00080d-Qn; Fri, 26 Jul 2024 15:28:54 -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 1sXQcX-00080T-G2 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:28:53 -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 1sXQcX-00075v-8D for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:28:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXQcg-0003pq-4X for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 15:29:02 -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: 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 Original-Received: via spool by 71912-submit@debbugs.gnu.org id=B71912.172202211014701 (code B ref 71912); Fri, 26 Jul 2024 19:29:02 +0000 Original-Received: (at 71912) by debbugs.gnu.org; 26 Jul 2024 19:28:30 +0000 Original-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 Original-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 Original-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) Original-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) In-Reply-To: (Alan Third's message of "Fri, 26 Jul 2024 20:24:56 +0100") 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:289382 Archived-At: 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.