diff options
| author | Richard M. Stallman | 1994-05-09 05:08:06 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-09 05:08:06 +0000 |
| commit | 3a20653d462b04ef912c62e102d0dab8e297fac7 (patch) | |
| tree | 4f0f47761ab0a2070ba773b7632fa10e2cfd7777 /src | |
| parent | d0adf46f8680b4a65f3385db8f81fd717f4107e5 (diff) | |
| download | emacs-3a20653d462b04ef912c62e102d0dab8e297fac7.tar.gz emacs-3a20653d462b04ef912c62e102d0dab8e297fac7.zip | |
(x_set_window_size) [USE_X_TOOLKIT]:
Preserve the main widget's x and y position.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 12 |
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 */ |