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: Wed, 04 Dec 2024 05:47:41 +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="35725"; 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 Wed Dec 04 06:48:35 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 1tIiFW-0009Ai-Qr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Dec 2024 06:48:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIiF7-00048N-1x; Wed, 04 Dec 2024 00:48:09 -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 1tIiF2-000488-H5 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 00:48: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 1tIiF1-0007d1-FI for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 00:48:04 -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=1g8sf5Fw8qqEH5XgVKG2TjIHCnfP5aMDu4KIGSqiH8c=; b=QfPSPPFChgG6R+JUXMwrPCiYaySdN3QCHZjbJWAyNxToD/VskMsS8TSM1UXTukj+O/9yAEUA0Y+T5v/xsMNZ74jKfOzG2s3cNLbl9WFJOZaIFrbpfA2uK2NnGqr8E3YWiBGe8fTJwv4fw9YuKwMBS7RLB6w2a1kZkAuCD1VySGgugheZY0HoSPz/dLyIcOMRkHqphDeAA31YTbKLzjyadOrKCrwzmGixuvAV7pGgL3yWVhQqeJ3AsrteCSPLHDemA//aFWnKRQY4tXD+o2eVpT+IJEYwHF8gYUPhx7ZKeyPLjb3dH+KkOAe7otGBPVCt2tisccZqzWMM0rJ0zZBm2Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tIiF0-0003oK-73 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2024 00:48: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: Wed, 04 Dec 2024 05:48: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.173329126814623 (code B ref 74496); Wed, 04 Dec 2024 05:48:02 +0000 Original-Received: (at 74496) by debbugs.gnu.org; 4 Dec 2024 05:47:48 +0000 Original-Received: from localhost ([127.0.0.1]:33765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIiEl-0003nn-Ed for submit@debbugs.gnu.org; Wed, 04 Dec 2024 00:47:48 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:60035) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tIiEi-0003nZ-LY for 74496@debbugs.gnu.org; Wed, 04 Dec 2024 00:47:46 -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 4B45lg65013675 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 4 Dec 2024 05:47:43 GMT Original-Received: (from van.ly@localhost) by sdf.org (8.18.1/8.12.8/Submit) id 4B45lfDh005376; Wed, 4 Dec 2024 05:47:41 GMT In-Reply-To: <6fcff54a-3795-4361-b36e-999b93fe1a66@gmx.at> (message from martin rudalics on Tue, 3 Dec 2024 09:24:05 +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:296392 Archived-At: martin rudalics writes: > >> - The size of fullscreen frames shrinks by 8 pixels unless there is a > >> maximized frame present. > > > > That was the case when I was evaluating those expressions. But, now > > fullboth and maximized frames will adjust up the bottom edge by 8 > > pixels. > > Does this mean that restarting CWTM will always shrink all maximized and > fullboth Emacs frames by 8 pixels? What about fullheight frames? And > does the width of frames not shrink any more? Below is another go to capture the state of the windowframes. When I claimed the presence of a maximized full screen would let all fullscreens stick across ctwm restart, that might've been me seeing an illusion. >From the data below, I see that a `maximized' full screen will leave a gap at the bottom border. The outer-size stays at `1914 . 1069'. The gap persists across ctwm restart. In the case of ctwm restart on `F11 fullscreen' the windowframe outer-size parameter goes from `1920 . 1080' to `1914 . 1069'. Emacs 29.4 behaves the same. More information, CTWM's window context menu for zoom, zoom-v, zoom-h does the following to an initial frame outer-size frame parameter changes - 674 . 678 <= initial - 1914 . 1069 zoom - 674 . 1069 zoom-v - 1914 . 678 zoom-h Hope this helps. // zoom zoom-v zoom-h BEGIN 1 (frame-geometry) 2 ;; initial window frame parameters 3 ;; => ((outer-position 629 . 104) (outer-size 674 . 678) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 674 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 672 . 36) (internal-border-width . 1)) 4 5 (frame-geometry) 6 ;; ctwm window zoom 7 ;; => ((outer-position 0 . 0) (outer-size 1914 . 1069) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1914 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1912 . 36) (internal-border-width . 1)) 8 9 (frame-geometry) 10 ;; ctwm window zoom vertical 11 ;; => ((outer-position 629 . 0) (outer-size 674 . 1069) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 674 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 672 . 36) (internal-border-width . 1)) 12 13 (frame-geometry) 14 ;; ctwm window zoom horizontal 15 ;; => ((outer-position 0 . 104) (outer-size 1914 . 678) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1914 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1912 . 36) (internal-border-width . 1)) // zoom zoom-v zoom-h END -- before ctwm restart F11 fullscreen BEGIN 1 (frame-geometry) 2 ;; => ((outer-position -3 . -3) (outer-size 1920 . 1080) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1920 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1918 . 36) (internal-border-width . 1)) 3 (frame-parameter nil 'fullscreen) 4 ;; => fullboth 1 $ xprop 2 CTWM_OTP_AFLAGS(INTEGER) = 4 3 _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 4 XdndAware(ATOM) = BITMAP 5 WM_STATE(WM_STATE): 6 window state: Normal 7 icon window: 0x0 => 8 _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN 9 _NET_WM_DESKTOP(CARDINAL) = 1 10 WM_OCCUPATION(STRING) = "2" 11 _NET_WM_SYNC_FENCES(CARDINAL) = 52428953, 52428954 12 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 52428952 13 _NET_WM_PID(CARDINAL) = 1943 14 _NET_WM_ICON_NAME(UTF8_STRING) = "*scratch*" 15 _NET_WM_NAME(UTF8_STRING) = "*scratch*" 16 WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, WM_SAVE_YOURSELF, _NET_WM_PING, _NET_WM_SYNC_REQUEST 17 WM_CLIENT_LEADER(WINDOW): window id # 0x3200088 18 WM_LOCALE_NAME(STRING) = "en_AU.UTF-8" 19 WM_CLASS(STRING) = "emacs", "Emacs" 20 WM_HINTS(WM_HINTS): 21 Client accepts input or input focus: True 22 Initial state is Normal State. 23 bitmap id # to use for icon: 0x320002d 24 bitmap id # of mask for icon: 0x320002f 25 WM_NORMAL_HINTS(WM_SIZE_HINTS): 26 user specified size: 674 by 678 27 program specified minimum size: 34 by 66 28 program specified resize increment: 8 by 17 29 program specified base size: 34 by 66 30 window gravity: NorthWest 31 WM_CLIENT_MACHINE(STRING) = "xxx" 32 WM_ICON_NAME(STRING) = "*scratch*" 33 WM_NAME(STRING) = "*scratch*" -- before ctwm restart F11 fullscreen END == after ctwm restart F11 fullscreen BEGIN 1 (frame-geometry) 2 ;; => ((outer-position -3 . -3) (outer-size 1914 . 1069) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1914 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1912 . 36) (internal-border-width . 1)) 3 (frame-parameter nil 'fullscreen) 4 ;; => nil 1 $ xprop 2 CTWM_OTP_AFLAGS(INTEGER) = 4 3 _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 4 XdndAware(ATOM) = BITMAP 5 WM_STATE(WM_STATE): 6 window state: Normal 7 icon window: 0x0 => 8 _NET_WM_STATE(ATOM) = 9 _NET_WM_DESKTOP(CARDINAL) = 1 10 WM_OCCUPATION(STRING) = "2" 11 _NET_WM_SYNC_FENCES(CARDINAL) = 52428953, 52428954 12 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 52428952 13 _NET_WM_PID(CARDINAL) = 1943 14 _NET_WM_ICON_NAME(UTF8_STRING) = "*scratch*" 15 _NET_WM_NAME(UTF8_STRING) = "*scratch*" 16 WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, WM_SAVE_YOURSELF, _NET_WM_PING, _NET_WM_SYNC_REQUEST 17 WM_CLIENT_LEADER(WINDOW): window id # 0x3200088 18 WM_LOCALE_NAME(STRING) = "en_AU.UTF-8" 19 WM_CLASS(STRING) = "emacs", "Emacs" 20 WM_HINTS(WM_HINTS): 21 Client accepts input or input focus: True 22 Initial state is Normal State. 23 bitmap id # to use for icon: 0x320002d 24 bitmap id # of mask for icon: 0x320002f 25 WM_NORMAL_HINTS(WM_SIZE_HINTS): 26 user specified size: 674 by 678 27 program specified minimum size: 34 by 66 28 program specified resize increment: 8 by 17 29 program specified base size: 34 by 66 30 window gravity: NorthWest 31 WM_CLIENT_MACHINE(STRING) = "xxx" 32 WM_ICON_NAME(STRING) = "*scratch*" 33 WM_NAME(STRING) = "*scratch*" == after ctwm restart F11 fullscreen END -- before ctwm restart zoom maximized full screen BEGIN 1 (frame-geometry) 2 ;; => ((outer-position 0 . 0) (outer-size 1914 . 1069) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1914 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1912 . 36) (internal-border-width . 1)) 3 (frame-parameter nil 'fullscreen) 4 ;; => maximized 1 $ xprop 2 CTWM_OTP_AFLAGS(INTEGER) = 4 3 _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 4 XdndAware(ATOM) = BITMAP 5 WM_STATE(WM_STATE): 6 window state: Normal 7 icon window: 0x0 => 8 _NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ 9 _NET_WM_DESKTOP(CARDINAL) = 2 10 WM_OCCUPATION(STRING) = "3" 11 _NET_WM_SYNC_FENCES(CARDINAL) = 52429087, 52429088 12 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 52429086 13 _NET_WM_PID(CARDINAL) = 1943 14 _NET_WM_ICON_NAME(UTF8_STRING) = "*scratch*" 15 _NET_WM_NAME(UTF8_STRING) = "*scratch*" 16 WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, WM_SAVE_YOURSELF, _NET_WM_PING, _NET_WM_SYNC_REQUEST 17 WM_CLIENT_LEADER(WINDOW): window id # 0x320010e 18 WM_LOCALE_NAME(STRING) = "en_AU.UTF-8" 19 WM_CLASS(STRING) = "emacs", "Emacs" 20 WM_HINTS(WM_HINTS): 21 Client accepts input or input focus: True 22 Initial state is Normal State. 23 bitmap id # to use for icon: 0x320002d 24 bitmap id # of mask for icon: 0x320002f 25 WM_NORMAL_HINTS(WM_SIZE_HINTS): 26 user specified size: 674 by 678 27 program specified minimum size: 34 by 66 28 program specified resize increment: 8 by 17 29 program specified base size: 34 by 66 30 window gravity: NorthWest 31 WM_CLIENT_MACHINE(STRING) = "xxx" 32 WM_ICON_NAME(STRING) = "*scratch*" 33 WM_NAME(STRING) = "*scratch*" -- before ctwm restart zoom maximized full screen END == after ctwm restart zoom maximized full screen BEGIN 1 (frame-geometry) 2 ;; => ((outer-position 0 . 0) (outer-size 1914 . 1069) (external-border-size -3 . -3) (outer-border-width . 0) (title-bar-size 0 . 6) (menu-bar-external . t) (menu-bar-size 1914 . 28) (tab-bar-size 0 . 0) (tool-bar-external) (tool-bar-position . top) (tool-bar-size 1912 . 36) (internal-border-width . 1)) 3 (frame-parameter nil 'fullscreen) 4 ;; => nil 1 $ xprop 2 CTWM_OTP_AFLAGS(INTEGER) = 4 3 _MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 4 XdndAware(ATOM) = BITMAP 5 WM_STATE(WM_STATE): 6 window state: Normal 7 icon window: 0x0 => 8 _NET_WM_STATE(ATOM) = 9 _NET_WM_DESKTOP(CARDINAL) = 2 10 WM_OCCUPATION(STRING) = "3" 11 _NET_WM_SYNC_FENCES(CARDINAL) = 52429087, 52429088 12 _NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 52429086 13 _NET_WM_PID(CARDINAL) = 1943 14 _NET_WM_ICON_NAME(UTF8_STRING) = "*scratch*" 15 _NET_WM_NAME(UTF8_STRING) = "*scratch*" 16 WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, WM_SAVE_YOURSELF, _NET_WM_PING, _NET_WM_SYNC_REQUEST 17 WM_CLIENT_LEADER(WINDOW): window id # 0x320010e 18 WM_LOCALE_NAME(STRING) = "en_AU.UTF-8" 19 WM_CLASS(STRING) = "emacs", "Emacs" 20 WM_HINTS(WM_HINTS): 21 Client accepts input or input focus: True 22 Initial state is Normal State. 23 bitmap id # to use for icon: 0x320002d 24 bitmap id # of mask for icon: 0x320002f 25 WM_NORMAL_HINTS(WM_SIZE_HINTS): 26 user specified size: 674 by 678 27 program specified minimum size: 34 by 66 28 program specified resize increment: 8 by 17 29 program specified base size: 34 by 66 30 window gravity: NorthWest 31 WM_CLIENT_MACHINE(STRING) = "xxx" 32 WM_ICON_NAME(STRING) = "*scratch*" 33 WM_NAME(STRING) = "*scratch* == after ctwm restart zoom maximized full screen END -- vl