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 09:38:35 +0000 Message-ID: References: Reply-To: Van Ly Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2174"; 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 10:39:32 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 1tM28x-0000NP-J7 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Dec 2024 10:39:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM28Z-0001Hm-Ou; Fri, 13 Dec 2024 04:39: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 1tM28U-0001HQ-VB for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 04:39:03 -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 1tM28U-0005h7-M5 for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 04:39:02 -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=WfT1vGxQY1cgpspRP8KoZ+77Zlcxx/KI2BlnRHSTnGY=; b=dNtPX6wr+DuqSC9NR1OsUGP4RfaB9LzlL1GNI36fS3fjAbpXP9hKpuxz40NXULfUocXhHETWmzuQl9V0NUeSzmEncebh1Rw+2nyi30829frznIGVwaPQyA4XSl2D0Nxq+oU/39b8gG6CcbSD4+9tf9bEBjbyWWBHDRFdrFu7fyGGqb9oR2g7rfbKK8Skj8jF/dXJiT+6tTX3HimQg9mCtm1a69mDQerdQGZCFH2ANNMGtJv9XXrTLOYRsSfpP0SiBfHeCAZZ9fBpxpcLKh3WSR86PPHC/IPDPZBvbBpWZTazwVyPfyxqJGan8YzdRCgpPoIIRLieG0mhv60bnMVi0w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tM28T-0003nu-Tj for bug-gnu-emacs@gnu.org; Fri, 13 Dec 2024 04:39: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 09:39: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.173408273514604 (code B ref 74496); Fri, 13 Dec 2024 09:39:01 +0000 Original-Received: (at 74496) by debbugs.gnu.org; 13 Dec 2024 09:38:55 +0000 Original-Received: from localhost ([127.0.0.1]:41604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM28I-0003nQ-6H for submit@debbugs.gnu.org; Fri, 13 Dec 2024 04:38:54 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:56892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM288-0003mw-0m for 74496@debbugs.gnu.org; Fri, 13 Dec 2024 04:38:48 -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 4BD9caJp016621 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 13 Dec 2024 09:38:36 GMT Original-Received: (from van.ly@localhost) by sdf.org (8.18.1/8.12.8/Submit) id 4BD9cZTT010887; Fri, 13 Dec 2024 09:38:35 GMT In-Reply-To: <10489a23-1f74-4f9a-9fd0-6609a043fcc3@gmx.at> (message from martin rudalics on Thu, 12 Dec 2024 18:18:22 +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:296967 Archived-At: martin rudalics writes: > > (defun f11 () > (interactive) > (let ((pos (frame-position))) > (if (and (not (frame-parameter nil 'fullscreen)) > (< (car pos) 0) (< (cdr pos) 0)) > (progn > (set-frame-parameter nil 'fullscreen nil) > (modify-frame-parameters > nil '((left . 20) (top . 20) (width . 80) (height . 24)))) > (toggle-frame-fullscreen)))) > > (global-set-key [f11] 'f11) > Thank you for taking the trouble to compose that snippet. > > Do other window managers remember their window frame size history prior > > to their current size at time of wm restart after restart? I could use > > the example to show the CTWM maintainers. > > The CTWM maintainers will probably tell you that other window managers > do not allow restarts that keep windows alive. It's probably not worth troubling the CTWM maintainers. The ctwm dot org email archive is no longer showing content. To stay on topic on this bug, without frame-resize-pixelwise being set t, F11 fullscreen achieves maximized fullscreen. When ctwm restart occurs and when the gap appears on the bottom edge of emacs relative to the desktop background, couldn't a screen refresh controlled by emacs 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? -- vl