Commit 051533c6 authored by Konstantin Kharlamov's avatar Konstantin Kharlamov Committed by Eli Zaretskii

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)
parent 3187efe7
Pipeline #1165 failed with stage
in 51 minutes and 41 seconds
...@@ -297,7 +297,6 @@ update_wm_hints (EmacsFrame ew) ...@@ -297,7 +297,6 @@ update_wm_hints (EmacsFrame ew)
int char_height; int char_height;
int base_width; int base_width;
int base_height; int base_height;
int min_rows = 0, min_cols = 0;
/* This happens when the frame is just created. */ /* This happens when the frame is just created. */
if (! wmshell) return; if (! wmshell) return;
...@@ -323,8 +322,8 @@ update_wm_hints (EmacsFrame ew) ...@@ -323,8 +322,8 @@ update_wm_hints (EmacsFrame ew)
XtNbaseHeight, (XtArgVal) base_height, XtNbaseHeight, (XtArgVal) base_height,
XtNwidthInc, (XtArgVal) (frame_resize_pixelwise ? 1 : cw), XtNwidthInc, (XtArgVal) (frame_resize_pixelwise ? 1 : cw),
XtNheightInc, (XtArgVal) (frame_resize_pixelwise ? 1 : ch), XtNheightInc, (XtArgVal) (frame_resize_pixelwise ? 1 : ch),
XtNminWidth, (XtArgVal) (base_width + min_cols * cw), XtNminWidth, (XtArgVal) base_width,
XtNminHeight, (XtArgVal) (base_height + min_rows * ch), XtNminHeight, (XtArgVal) base_height,
NULL); NULL);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment