[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs's set-frame-size can not work well with gnome-shell?
From: |
Dmitry Gutov |
Subject: |
Re: Emacs's set-frame-size can not work well with gnome-shell? |
Date: |
Thu, 16 Jan 2020 03:04:18 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 14.01.2020 18:50, martin rudalics wrote:
Run it under gdb with a breakpoint like
break gtkutil.c:1004
and continue until it is hit by tumashu's 'resize-test' invocation.
Then do p totalwidth and p totalheight (here they are 390 and 360).
Here are the last hits. The first two during the frame's creation:
Thread 1 "emacs" hit Breakpoint 1, xg_frame_set_char_size
(f=f@entry=0x55555719fae0, width=width@entry=720,
height=height@entry=360) at gtkutil.c:1004
1004 gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
(gdb) p totalwidth
$3 = 368
(gdb) p totalheight
$4 = 180
(gdb) c
Continuing.
Thread 1 "emacs" hit Breakpoint 1, xg_frame_set_char_size
(f=f@entry=0x55555719fae0, width=width@entry=720,
height=height@entry=390) at gtkutil.c:1004
1004 gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
(gdb) p totalwidth
$5 = 368
(gdb) p totalheight
$6 = 195
(gdb) c
Continuing.
And the last one during the attempt to resize it.
Thread 1 "emacs" hit Breakpoint 1, xg_frame_set_char_size
(f=f@entry=0x5555572f1c60, width=width@entry=720,
height=height@entry=780) at gtkutil.c:1004
1004 gtk_window_resize (GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f)),
(gdb) p totalwidth
$1 = 368
(gdb) p totalheight
$2 = 390
I repeated the scenario a few times, the values are stable.
The above was when using a custom configuration. With 'emacs -Q', the
values are just slightly different (384 and 360).
- Re: Emacs's set-frame-size can not work well with gnome-shell?, (continued)
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/25
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/26
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/26
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/26
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/26
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/28
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/26
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/22
- Re:Re: Emacs's set-frame-size can not work well with gnome-shell?, tumashu, 2020/01/22
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/25
- Re: Emacs's set-frame-size can not work well with gnome-shell?,
Dmitry Gutov <=
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/16
- Re: Emacs's set-frame-size can not work well with gnome-shell?, Dmitry Gutov, 2020/01/16
- Re:Re: Emacs's set-frame-size can not work well with gnome-shell?, tumashu, 2020/01/11
- Re: Emacs's set-frame-size can not work well with gnome-shell?, martin rudalics, 2020/01/11
Re: Emacs's set-frame-size can not work well with gnome-shell?, tumashu, 2020/01/22