narrow scope of variable x

This commit is contained in:
Mike Small 2020-11-07 14:44:29 -05:00
parent 79e5cec364
commit d98d0940c0

View File

@ -146,7 +146,6 @@ CreateIconWindow(TwmWindow* win, int def_x, int def_y)
unsigned long valuemask; /* mask for create windows */
XSetWindowAttributes attributes; /* attributes for create windows */
Pixmap pm = None; /* tmp pixmap variable */
int x;
FB(win->iconc.fore, win->iconc.back);
@ -337,7 +336,7 @@ CreateIconWindow(TwmWindow* win, int def_x, int def_y)
if (pm != None &&
(! (win->wmhints && win->wmhints->flags & IconWindowHint)))
{
int y;
int x, y;
y = 0;
if (win->icon_w_width == win->icon_width)