[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposing changes to adjust_frame_size
From: |
martin rudalics |
Subject: |
Re: Proposing changes to adjust_frame_size |
Date: |
Mon, 10 May 2021 16:16:27 +0200 |
> ----------------
> (setq frame (make-frame '((width . 60) (height . 20)
> (left-fringe . 0) (right-fringe . 0)
> (vertical-scroll-bars . nil)
> (visibility . nil))))
> #<frame emacs@luna 0x558a98460d78>
>
> (make-frame-visible frame)
> #<frame emacs@luna 0x558a98460d78>
>
> (frame-width frame)
> 60
>
> (frame-height frame)
> 20
> ----------------
This would indicate that the toolbar lines implied resize is the culprit
but this
> But sometimes:
>
> ----------------
> (frame-width frame)
> 40
>
> (frame-height frame)
> 5
> ----------------
is very strange.
>> And how does a normal, visible pgtk frame behave when you toggle
>> scroll
>> bars or fringes on and off? Here it expands and shrinks.
>
> Shrinks and shrinks.
I had this when toggling menu bar lines on Motif builds.
> ----------------
> (frame-width)
> 81
>
> (modify-frame-parameters nil '((right-fringe . 0)))
> nil
>
> (frame-width)
> 79
>
> (modify-frame-parameters nil '((right-fringe . 1)))
> nil
>
> (frame-width)
> 76
>
> (modify-frame-parameters nil '((right-fringe . 0)))
> nil
>
> (frame-width)
> 74
>
> (modify-frame-parameters nil '((right-fringe . 1)))
> nil
>
> (frame-width)
> 71
> ----------------
>
> It is the same when I toggle vertical-scroll-bars.
>
> I'll debug...
Please try (if those work on your system) with
- frame-resize-pixelwise t initially
- a pgtk build using GTK2
- a normal "non-pgtk" GTK3 build
and also do initialize
frame_size_history = list1 (make_fixnum (100));
and post the contents of the file displayed by
(frame--size-history)
(pop-to-buffer "*frame-size-history*"))
martin
- Re: Proposing changes to adjust_frame_size, (continued)
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/06
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/09
- Re: Proposing changes to adjust_frame_size, martin rudalics, 2021/05/09
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/09
- Re: Proposing changes to adjust_frame_size, martin rudalics, 2021/05/10
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/10
- Re: Proposing changes to adjust_frame_size,
martin rudalics <=
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/10
- Re: Proposing changes to adjust_frame_size, martin rudalics, 2021/05/10
- Re: Proposing changes to adjust_frame_size, Yuuki Harano, 2021/05/11
- Re: Proposing changes to adjust_frame_size, martin rudalics, 2021/05/12
- Re: Proposing changes to adjust_frame_size, Garjola Dindi, 2021/05/13