bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#25943: 21.5 Frame Display Difficulties


From: martin rudalics
Subject: bug#25943: 21.5 Frame Display Difficulties
Date: Thu, 30 Mar 2017 09:29:31 +0200

> I did not think that this would be important.  I attach a run for 23.2
> this time.  FYI, it turns out that the code must be
> (id  (eval  (frame-parameter... in order to handle parameters such as (+
> -9)

Hmm... I thought all your Emacs 23.2 frames were on-screen.  You mean in
order to use the same test procedure for both 23.2 and 25.2, I presume.

> ;; Run 5.
>
> ;; In C Right Bottom frame, misplaced at Left Top.
> (frame-geometry)
>
> (
>  (outer-position -9 . 30)
>  (outer-size 836 . 447)
>  (external-border-size 10 . 10)
>  (title-bar-size 0 . 27)
>  (menu-bar-external . t)
>  (menu-bar-size 0 . 0)
>  (tool-bar-external . t)
>  (tool-bar-position . top)
>  (tool-bar-size 0 . 0)
>  (internal-border-width . 0))
>
> ;; In 4 Right Bottom frame, correctly placed at Right Bottom.
> (frame-geometry)
>
> (
>  (outer-position 1181 . 694)
>  (outer-size 836 . 447)
>  (external-border-size 10 . 10)
>  (title-bar-size 0 . 27)
>  (menu-bar-external . t)
>  (menu-bar-size 0 . 0)
>  (tool-bar-external . t)
>  (tool-bar-position . top)
>  (tool-bar-size 0 . 0)
>  (internal-border-width . 0))

I didn't make myself clear enough.  A frame gets misplaced at the left
top of your screen because its position was miscalculated in a way that
would have put the frame off-screen.  Since you likely use one display
only, your window manager then puts the frame at some default place (the
-9 and 30 values in your case).  Here it puts them right at the top left
display corner.  `frame-geometry' won't reveal anything new wrt whether
a frame was misplaced that way.

What I menat was to find out the differences between `fun', `arg' and
`par' when the window manager places the frame more or less "correctly"
where you want it like at (1181 . 694).  Some frame parameters seem to
affect that, like the size of the scroll, menu or tool bar and we could
find out how.

But according to `frame-geometry' you use neither menu nor tool bars.
Right?  This means that I have no clue wrt how the height of your frames
gets miscalculated.  And for the width I probably need the default width
of your scroll bars.

So I would need your `frame-geometry' output from emacs -Q plus that of

(frame-parameter nil 'scroll-bar-width)

in order to find out.  All values reported should be (hopefully) the
same regardless of how wrongly Emacs wants to place the frame and where
the window manager eventually puts it.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]