From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74496: 30.0.91; fullscreen frame set with F11 is shifted when ctwm restarts Date: Sat, 7 Dec 2024 16:52:52 +0100 Message-ID: <1ee294d2-95fb-4c0f-a81b-c6d7a9435488@gmx.at> References: Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39881"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: eliz@gnu.org, 74496@debbugs.gnu.org To: Van Ly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 07 16:54:17 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 1tJx8L-000AGd-Ak for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Dec 2024 16:54:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJx87-0007K8-A6; Sat, 07 Dec 2024 10:54:03 -0500 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 1tJx86-0007Jd-83 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 10:54:02 -0500 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 1tJx85-0002zK-W2 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 10:54:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=yZFQ6KfZHDOKH3Ie/oOuIKDUqFpkOnDNT8c6t25i+gk=; b=bGwTjWMfKfIu1QA42AnnpGHQlMSc+Jjl59ySwAXVQ7meO+Bk41mRb2TeLamAZbArr42Ps7e/OlEa81q9qkgPG4NOVIJP0EaxOOXhi/OSjzkOkY6ZEHaDk1jWVbdue7I0wz1afvrOb2d5FO5F9lff52f075a+9kM/jtTouJq5KOpt+Vcfzrw3iNB1UUVQh/gLNuHKLayoiCZxb/G6adcPEKIuF+L5KpVuBlAzyCSdyahCFbqfbeADH+RsOqfC/kPBUvwdXnU3qLhh/cW3ww4f9nMhM2MEBSd9pr1i8szwJV7nL9TbAOfxrHMLyxNaisns8mgHu22K/zMWrRS+7q+OCQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJx85-0004TE-R0 for bug-gnu-emacs@gnu.org; Sat, 07 Dec 2024 10:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Dec 2024 15:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74496 X-GNU-PR-Package: emacs Original-Received: via spool by 74496-submit@debbugs.gnu.org id=B74496.173358678417107 (code B ref 74496); Sat, 07 Dec 2024 15:54:01 +0000 Original-Received: (at 74496) by debbugs.gnu.org; 7 Dec 2024 15:53:04 +0000 Original-Received: from localhost ([127.0.0.1]:48240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJx79-0004Rr-NL for submit@debbugs.gnu.org; Sat, 07 Dec 2024 10:53:04 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJx77-0004RM-Pp for 74496@debbugs.gnu.org; Sat, 07 Dec 2024 10:53:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1733586775; x=1734191575; i=rudalics@gmx.at; bh=yZFQ6KfZHDOKH3Ie/oOuIKDUqFpkOnDNT8c6t25i+gk=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To:Cc: References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=kAO8t3Z3GW3hK4htBbvahkGyKB58fFMkfm643bWc/Rm1sKWWhnvgWVFg2jwb5QmE BYbyvSxwn9k79Y40QwXTKvegdDcgbHXG1psXHHFU5ztDaxlh7LvZJnBd2SNhV01/1 AxnnIsZW5M2iP7p2kw8RirSbgdeyxz9rDQgbaWWPuciItztJPI1n+yqEjTKcDqrU2 0qF1ZpLjH5m/j8FXbkCnhdNyYTywzqqclxnqI/zdO3NiLBDIQ63+I2f6N2s6ZZYCL NGQsqePSEHXpwD93/h31avn708yzKcen6cN4v4cwSIPW4uzo+XSBoPgnCwynJAE0E Nusm/orid+hZEQsKYg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([46.125.249.45]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MsHs0-1teMLV2P62-016HA4; Sat, 07 Dec 2024 16:52:55 +0100 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:D1nHccgni5ToiCGf0peZlBtRqJcLktg05TdKftBDfabw70QW4uH Ui8EUSN0yljUFm1tHDMlz4fYBsL2rWp4FJbY8jvg3nqDuHkORr+4i5pCj0TAk8jjYnvsSPP I71uTvCpP1zE99tlUp7F7ev53iKPM9QbAxwyQTMLRCi11TT9SvsCpAVnBXesgA3A0tMaNzB ScUVxAuSkGaBWokkF3Itg== UI-OutboundReport: notjunk:1;M01:P0:8Yz/LB4klVs=;1KGZ28Td9wyaEzIjuiSuRInmUzh +KqjxobW1lIeW6LLNNLgqKkExzt7aCDYdsTVxvO6IcnrqRRIylLgPZOSLlCzjgJiqFAOSpKV7 tQ8ULuts86g6EEiedEFPdFrfxCyJGeBPGtsVe3TEOvfpntaUOLhcrs68J2Kkrx4KHPvDbiPZ9 8SOgRrphPsUb4x2kTv0zuLIdVccVujeQUgWaUo6pSVcoXvNhEZx1N1cFlS2pP7PWGh2U+q+8+ LdoFxa0qS3k6lBy4248vRtpvp9JNuc/XBoghUwPiwpp6msyGVQyQbf8BYWy98HGLPkV/ekq8V hkJ5HbDgqe3QnyVME8MnUz/rgKi82aay0o2UQXdx7xEfm7Di2+S2ZGX0RHVnHRP4vmLP/pBDH EzAQRYfDOih41bGNsxQWf/0B2ZH1MaDl6iF0R5vo1a9W1hsGut2Y2DQrmNHdwVc8wOC2CM/20 /h2bonhAyLfoCR4efJV02vV1JneSrN0I1ncK062NMtxKEOBMo2/ZbAOMejVZRyhqvTSkzdJ30 TsfJZ3slbgOfBvMZDfErJnlaZdaElWBBuAHzU5N1S/HjT8P7KyHBcexioJDQiojL4uNbOG3bX vumfSb/DMHSGUWWSjq11XbiTQUyJew3i1Ba9oSLRFxMVVOVD0dPdx8+GYjaJWiAy/3mfz1XP/ VhnTejcKIb60YIVB2qZoRMU9T6zpbGCxDqe+AfSq/KrVgUn/3QEajyD5dWDSth6ddYvWppHwq zdmkDruczSX/LW54mjfO2hzDUE2f9R7d+JkJ4q0uiuZgyJ+Z2YL1BQOuCfaMeBVnjFQkMFHn 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:296577 Archived-At: I'll take a look into > this with the frame size history facility. > That first time I measured the frame attributes and the values persisted > after a ctwm restart was from > > (setq frame-resize-pixelwise t) > > you were expecting values to be different from the first data capture I > reported and I had misattributed the cause to be the presence of a > maximized full screen. > > I hadn't put that setting in the init file and forgot about that. I should have told you but I forgot as well. We'd eventually have to install a watcher for this variable. Whenever it is (re-)set that would (re-)set the size hints accordingly, maybe even in a let-binding. But this requires some experimenting. At the time 'frame-resize-pixelwise' was implemented, variable watchers were not available yet. > ;; with frame-resize-pixelwise setting confirmed > (setq-default frame-resize-pixelwise t) > > > > Fullboth after F11 ... > Width: 1920 > Height: 1080 ... > (frame-parameter nil 'fullscreen) => > fullboth ... > Fullboth after restart ... > Width: 1920 > Height: 1080 ... > (frame-parameter nil 'fullscreen) => > nil ... > Maximized > > xwininfo: Window id: 0x400220 "*About GNU Emacs*" ... > Width: 1914 > Height: 1074 .... > (frame-parameter nil 'fullscreen) => > maximized ... > Maximized after restart ... > Width: 1914 > Height: 1074 ... > (frame-parameter nil 'fullscreen) => > nil So IIUC the unexpected resizing with CTWM restart can be fixed by setting 'frame-resize-pixelwise' to t. The fullscreen parameter settings are still broken. These might be related to an obscure variable I coined 'x-frame-normalize-before-maximize' years ago but I have to experiment with it myself before telling you more. BTW, earlier I wrote that > - When restarting CTWM there is a short moment (less than a second) > where the frame shrinks slightly in both cases. Meanwhile I noticed the same behavior with all "vertically zoomed" windows including those on xterms. Can you observe a similar effect? martin