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
7553a6b7
Commit
7553a6b7
authored
Apr 27, 1994
by
Richard M. Stallman
Browse files
(x_wm_set_size_hint): Do set max_height, max_width, and PMaxSize flag.
parent
6ecbd1cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/xterm.c
src/xterm.c
+5
-1
No files found.
src/xterm.c
View file @
7553a6b7
...
...
@@ -5728,12 +5728,13 @@ x_wm_set_size_hint (f, prompting, change_gravity)
Window window = FRAME_X_WINDOW (f);
#endif /* not USE_X_TOOLKIT */
size_hints.flags = PResizeInc | PMinSize
/*
| PMaxSize
*/
;
size_hints.flags = PResizeInc | PMinSize | PMaxSize;
flexlines = f->height;
size_hints.x = f->display.x->left_pos;
size_hints.y = f->display.x->top_pos;
#ifdef USE_X_TOOLKIT
XtSetArg (al[ac], XtNwidth, &widget_width); ac++;
XtSetArg (al[ac], XtNheight, &widget_height); ac++;
...
...
@@ -5744,8 +5745,11 @@ x_wm_set_size_hint (f, prompting, change_gravity)
size_hints.height = PIXEL_HEIGHT (f);
size_hints.width = PIXEL_WIDTH (f);
#endif /* not USE_X_TOOLKIT */
size_hints.width_inc = FONT_WIDTH (f->display.x->font);
size_hints.height_inc = f->display.x->line_height;
size_hints.max_width = x_screen_width - CHAR_TO_PIXEL_WIDTH (f, 0);
size_hints.max_height = x_screen_height - CHAR_TO_PIXEL_HEIGHT (f, 0);
{
int base_width, base_height;
...
...
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