Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3a20653d
Commit
3a20653d
authored
May 09, 1994
by
Richard M. Stallman
Browse files
(x_set_window_size) [USE_X_TOOLKIT]:
Preserve the main widget's x and y position.
parent
d0adf46f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/xterm.c
src/xterm.c
+11
-1
No files found.
src/xterm.c
View file @
3a20653d
...
...
@@ -5244,7 +5244,17 @@ x_set_window_size (f, change_gravity, cols, rows)
#ifdef USE_X_TOOLKIT
BLOCK_INPUT;
EmacsFrameSetCharSize
(
f
->
display
.
x
->
edit_widget
,
cols
,
rows
);
{
/* The x and y position of the widget is clobbered by the
call to XtSetValues within EmacsFrameSetCharSize.
This is a real kludge, but I don't understand Xt so I can't
figure out a correct fix. Can anyone else tell me? -- rms. */
int xpos = f->display.x->widget->core.x;
int ypos = f->display.x->widget->core.y;
EmacsFrameSetCharSize (f->display.x->edit_widget, cols, rows);
f->display.x->widget->core.x = xpos;
f->display.x->widget->core.y = ypos;
}
UNBLOCK_INPUT;
#else /* not USE_X_TOOLKIT */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment