aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index bc6b614f4dc..e994465c4bc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -5244,7 +5244,17 @@ x_set_window_size (f, change_gravity, cols, rows)
5244 5244
5245#ifdef USE_X_TOOLKIT 5245#ifdef USE_X_TOOLKIT
5246 BLOCK_INPUT; 5246 BLOCK_INPUT;
5247 EmacsFrameSetCharSize (f->display.x->edit_widget, cols, rows); 5247 {
5248 /* The x and y position of the widget is clobbered by the
5249 call to XtSetValues within EmacsFrameSetCharSize.
5250 This is a real kludge, but I don't understand Xt so I can't
5251 figure out a correct fix. Can anyone else tell me? -- rms. */
5252 int xpos = f->display.x->widget->core.x;
5253 int ypos = f->display.x->widget->core.y;
5254 EmacsFrameSetCharSize (f->display.x->edit_widget, cols, rows);
5255 f->display.x->widget->core.x = xpos;
5256 f->display.x->widget->core.y = ypos;
5257 }
5248 UNBLOCK_INPUT; 5258 UNBLOCK_INPUT;
5249 5259
5250#else /* not USE_X_TOOLKIT */ 5260#else /* not USE_X_TOOLKIT */