Module Name: xsrc
Committed By: mlelstv
Date: Sat Feb 27 16:20:15 UTC 2021
Modified Files:
xsrc/external/mit/ctwm/dist: add_window.c
Log Message:
Use font height to compute height of resize popup for placing a window.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 xsrc/external/mit/ctwm/dist/add_window.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/ctwm/dist/add_window.c
diff -u xsrc/external/mit/ctwm/dist/add_window.c:1.1 xsrc/external/mit/ctwm/dist/add_window.c:1.2
--- xsrc/external/mit/ctwm/dist/add_window.c:1.1 Thu Sep 3 22:16:33 2015
+++ xsrc/external/mit/ctwm/dist/add_window.c Sat Feb 27 16:20:15 2021
@@ -862,7 +862,7 @@ TwmWindow *AddWindow(Window w, int iconm
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;