From: Van Ly via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: martin rudalics <rudalics@gmx.at>
Cc: eliz@gnu.org, 74496@debbugs.gnu.org
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 [thread overview]
Message-ID: <dcs7c8g579e.fsf@SDF.ORG> (raw)
In-Reply-To: <6fcff54a-3795-4361-b36e-999b93fe1a66@gmx.at> (message from martin rudalics on Tue, 3 Dec 2024 09:24:05 +0100)
martin rudalics <rudalics@gmx.at> 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
next prev parent reply other threads:[~2024-12-04 5:47 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-23 18:28 bug#74496: 30.0.91; fullscreen frame set with F11 is shifted when ctwm restarts Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 10:23 ` Eli Zaretskii
2024-11-30 10:36 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 13:03 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 16:53 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 18:21 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 19:01 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-30 19:25 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-01 8:46 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-01 9:59 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-01 11:05 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-01 14:26 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-01 17:50 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-02 16:04 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-03 8:24 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-04 5:58 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-04 9:53 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-02 15:47 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-02 16:22 ` Eli Zaretskii
2024-12-04 5:15 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-04 9:52 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-03 8:24 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-04 5:47 ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-12-04 9:53 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dcs7c8g579e.fsf@SDF.ORG \
--to=bug-gnu-emacs@gnu.org \
--cc=74496@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=rudalics@gmx.at \
--cc=van.ly@SDF.ORG \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).