diff options
author | Konstantin Kharlamov <Hi-Angel@yandex.ru> | 2019-04-02 23:49:58 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2019-04-05 10:15:46 +0300 |
commit | 051533c6fa63ee10e58e83823ba962a005ba68f9 (patch) | |
tree | e0e53b8ff51e872fe5b1c3aeb888ed6636234eeb /src/widget.c | |
parent | 3187efe713938ad41b676de9dbd92f986d46aa05 (diff) | |
download | emacs-051533c6fa63ee10e58e83823ba962a005ba68f9.tar.gz |
Minor cleanup in widget.c
* src/widget.c (update_wm_hints): Remove variables that are
always zero, and simplify all expressions which used them.
(Bug#35062)
Diffstat (limited to 'src/widget.c')
-rw-r--r-- | src/widget.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/widget.c b/src/widget.c index c695bd5f305..508974dd46f 100644 --- a/src/widget.c +++ b/src/widget.c @@ -297,7 +297,6 @@ update_wm_hints (EmacsFrame ew) int char_height; int base_width; int base_height; - int min_rows = 0, min_cols = 0; /* This happens when the frame is just created. */ if (! wmshell) return; @@ -323,8 +322,8 @@ update_wm_hints (EmacsFrame ew) XtNbaseHeight, (XtArgVal) base_height, XtNwidthInc, (XtArgVal) (frame_resize_pixelwise ? 1 : cw), XtNheightInc, (XtArgVal) (frame_resize_pixelwise ? 1 : ch), - XtNminWidth, (XtArgVal) (base_width + min_cols * cw), - XtNminHeight, (XtArgVal) (base_height + min_rows * ch), + XtNminWidth, (XtArgVal) base_width, + XtNminHeight, (XtArgVal) base_height, NULL); } |