Bug#365602: Patch for changing font size in a fixed-size window
severity 365602 normal
tags 365602 + patch
thanks
Hi,
I think this is more than just a minor bug, as it very much reduces
the usefulness of font size changes. In return for inflating the
severity, I offer a patch :)
With this applied, you can maximize an xterm, fire up a program like
emacs, hit "shift-KP_PLUS" and "shift-KP_MINUS", and marvel at how the
program resizes with the font to fit the screen.
-jim
--- xterm-231-orig/scrollbar.c 2007-02-11 09:49:56.000000000 -0500
+++ xterm-231/scrollbar.c 2008-01-31 01:00:43.000000000 -0500
@@ -192,6 +192,13 @@ DoResizeScreen(XtermWidget xw)
geomreqresult = XtMakeResizeRequest((Widget) xw, repWidth,
repHeight, NULL, NULL);
}
+
+ if (geomreqresult != XtGeometryYes) {
+ /* The resize wasn't successful, so we might need to adjust
+ our idea of how large the screen is. */
+ xw->core.widget_class->core_class.resize((Widget) xw);
+ }
+
#if 1 /* ndef nothack */
/*
* XtMakeResizeRequest() has the undesirable side-effect of clearing
Reply to: