From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly 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: Fri, 13 Dec 2024 11:28:37 +0000 Message-ID: References: Reply-To: Van Ly 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="22141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eliz@gnu.org, 74496@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 13 12:29:25 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 1tM3rG-0005Z6-P0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 12:29:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM3r2-0006VL-GB; Fri, 13 Dec 2024 06:29:08 -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 1tM3qy-0006Ud-6y for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 06:29:04 -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 1tM3qw-0001zO-JB for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 06:29:03 -0500 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:In-Reply-To:From:To:References:Subject; bh=jEbFXta7T82Eo0Tsvr4Rcejvk/H7bWM2jiPyqTLuMf4=; b=n4Mf5GhMWdYGo+RFafyNnE21vgo18bK+W7jI9e04VzXPCDD5HFrvM9Kg5DdojQrMBlKG4DWZMzdEiNh1SMbLn/MVQe6QIWkW2wgEK+WveOvlefig4EFdRLY1HyIHb12A3AhNs4aYwKbTLIoX+tAXPaBnD9Vbu1TTTTJIiTfJvS/n8FCxdThW6FpEdszxRuUVF89rYmd6ATxdq6m5PQSVl2ZU8Z1tF5j+CwbKiuIYLFF5jz1mgNIhu41MPVKziiEoFPi6ET5vWI6d5zN9UDUYWaT7EpLEwQKIqAs65lgx5nW7T9xFCBC4AIaCUXHqZV9ON5HSIlHtFSDz4iuWq+VkJw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tM3qw-0000aV-Db for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 06:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Van Ly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Dec 2024 11:29:02 +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.17340893292227 (code B ref 74496); Fri, 13 Dec 2024 11:29:02 +0000 Original-Received: (at 74496) by debbugs.gnu.org; 13 Dec 2024 11:28:49 +0000 Original-Received: from localhost ([127.0.0.1]:41799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM3qi-0000Zq-VA for submit@debbugs.gnu.org; Fri, 13 Dec 2024 06:28:49 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:58093) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM3qc-0000ZL-2n for 74496@debbugs.gnu.org; Fri, 13 Dec 2024 06:28:47 -0500 Original-Received: from sdf.org (iceland.freeshell.org [205.166.94.5]) by mx.sdf.org (8.18.1/8.14.3) with ESMTPS id 4BDBSc1G008350 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 13 Dec 2024 11:28:38 GMT Original-Received: (from van.ly@localhost) by sdf.org (8.18.1/8.12.8/Submit) id 4BDBSbOj024404; Fri, 13 Dec 2024 11:28:37 GMT In-Reply-To: <354764bf-b8f6-45bc-a3aa-bd99e5b9bf57@gmx.at> (message from martin rudalics on Fri, 13 Dec 2024 11:30:45 +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:296970 Archived-At: martin rudalics writes: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 Emacs is oblivious of ctwm restarts. All it ge= ts are > unmap, map and configure events. A watch guard on the full height parameter would notice the effect ctwm restart has taken place and the value has changed but maybe emacs can't tell the difference between human or environment invoked change on the height parameter. A heuristic could suggest to emacs ctwm restarted when the bottom edge is raised less than 10 pixels. > > call F11 fullscreen, again, and preserve the experience of maximized > > fullscreen? That being the case there's no need to insert in init file > > > > (setq-default frame-resize-pixelwise t) > > > > Toggle on the fullboth full screen Window Zoom produces the gap at the > > bottom edge before ctwm restart and that is solved by the above init > > file setting. Do you see what I mean? > > Not really. The gap results from the fact that after ctwm restarts the > frame has become "normal" again and ctwm applies the resize hints on it. > If 'frame-resize-pixelwise' is nil, ctwm rounds the height to the next > multiple of the frame's line height (+ the basic size). Why is it that F11 fullscreen maximizes the frame without gap at bottom? When frame-resize-pixelwise is nil, shouldn't the frame's line height effect leave a gap at bottom? > But you might be able to enhance the f11 specification I sent you > earlier to first shrink the frame by a few pixels and then toggle the > fullboth status again. So you would have to hit f11 after each ctwm > restart. Before knowing to apply frame-resize-pixelwise t, as is, I would hit F11 to regain the maximized fullscreen without gap after ctwm restart. With frame-resize-pixelwise t I don't need to hit F11 after restart because the maximized fullscreen without gap persists. --=20 vl