Source-Changes-HG archive

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

[xsrc/trunk]: xsrc/external/mit/ctwm/dist Use font height to compute height o...



details:   https://anonhg.NetBSD.org/xsrc/rev/f672f9cce3cd
branches:  trunk
changeset: 10654:f672f9cce3cd
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Feb 27 16:20:15 2021 +0000

description:
Use font height to compute height of resize popup for placing a window.

diffstat:

 external/mit/ctwm/dist/add_window.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bffad7332e01 -r f672f9cce3cd external/mit/ctwm/dist/add_window.c
--- a/external/mit/ctwm/dist/add_window.c       Sat Feb 27 15:37:38 2021 +0000
+++ b/external/mit/ctwm/dist/add_window.c       Sat Feb 27 16:20:15 2021 +0000
@@ -862,7 +862,7 @@
                           tmp_win->name, namelen,
                           &ink_rect, &logical_rect);
            width = SIZE_HINDENT + ink_rect.width;
-           height = logical_rect.height + SIZE_VINDENT * 2;
+           height = Scr->SizeFont.height + SIZE_VINDENT * 2;
            XmbTextExtents(Scr->SizeFont.font_set,
                           ": ", 2,  &logical_rect, &logical_rect);
            Scr->SizeStringOffset = width + logical_rect.width;



Home | Main Index | Thread Index | Old Index